Hi All,
In my form there are one text box and Infragistics web grid. I set the tab property of textbox to 1 and tabindex of Webgrid to 2.
When I hit the tab key to go from text box to Grid it is not working properly.
I created new button and updated the tab index property to 3 and on hitting the tab from first text box it is going directly to the button. i.e (from tab index 1 to tab index 3 skipping tab index 2)
I even looked at samples on the site, but i didnt got much there also.
Any help in this matter is highly appreciated.
Hello Jags / Vadim,
This is an interesting case and the problem is actually a generic HTML problem. All grids, including UltraWebGrid, render as Html <table> element which cannot gain focus (i.e. TabIndex / AccessKey are not applicable for them). TabIndex / AccessKey are only applicable for input control - textboes, buttons, radiobuttons, dropdowns, etc.
In order to emulate "focus" event for the grid, I guess a possible solution would be to use the client-side object model of the grid documented here:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebGrid_Object_CSOM.html
and use some of its methods, for example setActiveRow / setActiveCell in the onblur event of the first textbox (blur fires after the currently focused element loses focus) to wire custom javascript activating the grid.
Hope this helps.
Hi!
I have the same problem. Using of TabIndex doesn’t help.
Jags has you found a solution or workaround?