Categories | Question details Back To List | ||
TabIndex in XGRID Hello, I want to deactivate the automatic focus browsing in mygrid (tabIndex to -1), is there any function to use or modify ? Thanks -- AsaaDev Answer posted by Support on Jun 03, 2009 05:44 Normally , the grid has not any tabIndex defined, and not included in tab order of controls on the page. ( in can be included in tab-order by using setExternalTabOrder command ) So , in default case you need not do anything to prevent grid from tab-browsing. If you want to disable tab-key processing in grid, it can be done by using grid.attachEvent("onTab",function(){ return false; }) Answer posted by Asaad on Jun 03, 2009 08:01 thanks for your quick response, I'm adding this line code in mygrid description but it doesn't work. Answer posted by Support on Jun 03, 2009 08:11 Working sample was sent by email By the way, which version of grid you are using? Older versions may not support such event. Answer posted by Asaad on Jun 03, 2009 08:31 I'm using v2. with IE6, My cells are editable , and I have 2 link action one for edition and the other for delete. Answer posted by Support on Jun 03, 2009 09:11 In case of 2.0 version , you can change code as grid.attachEvent("onKeyPress",function(key){ if (key == 9 ) return false; return true; }) Answer posted by Asaad on Jun 03, 2009 09:25 Yes, now it's OK :) NB : With the first event "onTab", it seems to work if I click in a cell before tab-browsing, so the event is detected just after a click in mygrid. Thank you, |