|
|
||
|
selectRow should be your guy, if you are passing the third optional argument: |
||
|
|
|
|
||
|
I can't get it to work. Here's the code: |
||
|
|
|
|
||
|
The key is to call refresh()
function addRowSelected(bIndex) {
addRow(bIndex);
elm1.selectNone(); //<- need to do that clean up the display .... this // do not make the grid paint properly, but enable the // next line perform right elm1.selectRow(elm1.data.getRowcount()-1,true,true);
elm1.currentRow = elm1.getRowsVisible()-1; //the selectRow didn't set currentRow correct //thought set makeCurrent = ture. elm1.currentCol = 0;
elm1.refresh();
}
Henry Addicted listgrid user. |
||
|
|
|
|
||
|
Seems that setting the currentRow and then calling the refresh method does the trick. Thanks. |
||
|
|
|
|
||
|
but if you want to make sure the .selected contain the proper values you have to call selectRow also, I will submit a patch on this later on. |
||
|
|
