Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
Set focus to another control when UltraWebGrid is there
posted

I want to set focus to another control say textbox when Ultrawebgrid is there using the Focus() method in code. But the focus is not going to that control if UltraWebGrid is populated with data. If UltraWebGrid is empty then it is working. Is there a way to set focus to other control through code when UltraWebGrid is populated with data?

Parents
  • 80
    Suggested Answer
    posted

    I found this on another post for a different problem, but it worked for me.  My problem was similar to yours - select a row and have the focus go to a textbox.  Try this:

    In the source code of your aspx page add the following javascript -

     

     

     

     

    function  grid_MouseDownHandler(gridName, id, button)

    {

     

     

    var  grid = igtbl_getGridById(gridName);

    grid.Element.removeAttribute(

    "mouseDown");

    }

    In the displaylayout part of your grid add this -

    ClientSideEvents-MouseDownHandler

     

    ="grid_MouseDownHandler"

    That should work.

Reply Children
No Data