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
400
How to set focus to a WebGrid?
posted

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

Parents Reply Children