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?
Hi jdangiel,
Thanks for the reply.
But the solution is still not working. Can you supply a sample aspx with the above code working.
Thanks
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 -
{
grid.Element.removeAttribute(
"mouseDown");
}
In the displaylayout part of your grid add this -
ClientSideEvents-MouseDownHandler
="grid_MouseDownHandler"
That should work.