Sorry , but I can’t to do like in advice . Can you help to me ? How to extract the last position and let to grid to go ?
Also I found that ( key press Ctrl + End ) :
mygrid.selectCell( mygrid.rowsCol[ mygrid.rowsCol.length - 1 ], mygrid._cCount-1, false, false, true );
mygrid._select_ifpossible();
But can’t understand how to let to grid activate this ? In which “attachEvent” ?
How to extract the last position and let to grid to go ?
F.e. you have a grid with 1000 rows, 10 rows are visible in the grid at once.
So the index of the last row is 999. 991 - ix the index of the first row in case scrolling the grid to the end.
You need to load xml with the following parameters:
xml is returning through - var cQry = “uzs1.php?fld=” + slc_fld + “&d_b=” + $app_db; . And now I must to direct to xml position … How ? Can you post a simple sample ?
Excuse , but I’m new in javascript . Working with others techniques - xBase or MSB Dinamic Axapta - grid object have a method gobottom() . Simply after form load I can direct to do event and let grid go bottom . Something similar I imagined and here . Exist Ctrl+End - it let to grid to go bottom . After some search I found , that in dhtmlxgrid_keymap_excel.js for Ctrl+End keypress exist this :
k35_1_0:function(){ //ctrl-end
if (this.editor || !this.rowsCol.length) return false;
this.selectCell(this.rowsCol[this.rowsCol.length-1],this._cCount-1,true);
}
The problem - how to activate this code for one time , then grid is loaded and let to go bottom ?