I have a WebGrid on a page. From time to time the user will click on something else on the page (like a button that causes a WebDialogWindow to display). When the user closes the WebDialogWindow, I would like to return the focus to the WebGrid. I don't need to open any editors on the grid, just get the focus back there.
For an asp.net control, I would just use control.focus(), but the grid doesn't have a focus method...
How do I get the next keystroke to go to the active cell of the grid (without calling beginEdit)?
Thanks,
DaveL
Hi DaveL,
The UltraWebGrid has the Focus method. Please visit the following link to learn more about UltraWebGrid properties and methods.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Infragistics2.WebUI.UltraWebGrid.v8.3~Infragistics.WebUI.UltraWebGrid.UltraWebGrid_members.html
To make a cell active with a keystoke, you can handle the KeyDown or KeyUp event on the client side and activate the cell you want. Here is the link to CSOM of WebGrid.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebGrid_CSOM_Overview.html
Please visit the links and let me know if you have any other questions or concerns.
Thanks
I see that I left out one small detail...
Your pointer concerns server-side methods. I need to do this on the client. That's why I was using the example of "control.focus()" rather than "control.Focus()".
What I need is to understand how to do the equivalent of the following on the client using BLOCKED SCRIPT
var foo = igtbl_getGridById("UltraWebGrid1");foo.focus();
When I run this code I get the error "Microsoft JScript runtime error: Object doesn't support this property or method"
Sorry about the confusion.