Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by JP on Mar 24, 2009 08:21
open dhtmlx forum
Select text with split

Hi,

I'm using this code on EditCell event to select the text when user tries to change a cell:

if (stage == 1 && grid.editor && grid.editor.obj) {
    grid.editor.obj.select();
}

Everything works great, however when i use split mode, on the fixed part this code does not work (grid.editor is null) but on the scrollable part it works. Please help with this issue.

Thanks in advance.
Answer posted by dhxSupport on Mar 24, 2009 09:17

To get object of the left part of grid (part with frozen columns):

 grid._fake.editor.obj.select();