I am displaying a Tree in the first column and then 12 months of data and want to auto scroll to the column showing the current months data whilst using the splitat(1) to keep the tree in view
e.g. grid looks like
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Tree
and I want it to initially show
Apr May Jun Jul Aug Sep Oct Nov Dec
Tree
Is this possible?
You can use split at position 1 to made grid always visible and to scroll right part of grid to necessary column one of next solutions
a) If at least one row exists in grid, and you know its ID
grid.selectCell(0,4);
grid.clearSelection();
the select Cell will force auto-scroll to cell in question
or
b) You can set necessary scroll value manually
grid.loadXML(url,function(){
grid.objBox.scrollLeft=some+“px”; //set horizontal scrollbar state
});