Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Daniel on Mar 04, 2008 20:35
open dhtmlx forum
setSelectedRow() with grid in splitAt() mode

I am rendering a grid on split mode using v1.3.
...
grid.init();
grid.splitAt(4);
grid.loadXML(xml);
...

grid.setSelectedRow(rowId, false, true);

...

It highlights the row, but does not scroll the selected row into view. When I remove the splitAt() method, it renders correctly with scrolling the selected row into view.

Does the setSelectedRow() function work in grid split mode?

Thanks
Answer posted by Support on Mar 05, 2008 08:42
Problem was fixed in later versions.
In your version of grid you can solve problem by adding next command

    grid.setSelectedRow(rowId, false, true);
    grid.moveToVisible(grid.getRowById(id),true);