Dear sir,
I am facing a problem with dhtmlxGrid as I am adding feautures to my project.
Let me explain to you the situation. I tried simple combo as inplace editor first and I found that it did not have
a dropdown arrow while editing the grid. Therefore, I downloaded dhtmlxCombo as GPL license to make it as the
inplace editor. This is the columns details
mygrid.setColTypes(“cntr,combo,dhxCalendarA,mynum,ed,combo,ro,ro”);
Everything works fine but tabbing has gone a total mess.
I have placed an input outside the grid in such a way that the focus goes to the grid from the input box.
Once I tab from the combo selection the focus goes out of the grid to the input box and next tab will focus the first cell of the grid
and only the third tab makes the next cell focused.
When I used ‘co’ type this issue does not exist.
Does this grid remember the last cell selected. Each time I tab from an outside control the focus goes to the last focused cell instead of the first cell of
the first editable row? Can I disable this feature? I want to have the focus in the first cell always on grid enter.
About the tab issue, if I click on the combo and tab off, it works just fine. I am using ‘Access-key mapping’ which suppose to go editing
upon entering cell. What I assume is when I tab to the the column of type combo, though the combo drops down it does not actually gets focused.
until I click on the combo. How can I make automatically selected?
I can cut and paste the code here:)
To set elements which get focus when tab is pressed in the last or first you should use the function:
mygrid.setExternalTabOrder(start, end)
start - html object or its id - gets focus when tab+shift are pressed in the first cell
end - html object or its id - gets focus when tab is pressed in the last cell
Problem with cntr column in the grid confirmed and fixed, fix will be available as part of next build, if you need it ASAP - you can use attached patch.
patch.zip (518 Bytes)
Hi,
Thanks for the replay. Please let me know where to copy the patch? is it in the codebase? In my case,
dhtmlxGrid_v20_pro_81009-EVAL\dhtmlxGrid\codebase and put a link inside the file?
Thanks.
Biju
Yes, place the file in folder with other js files and include it in page after other js files
( also, you can use just add the content of patch.js to the end of dhtmlxgrid.js , in such case you will not need any extra files )