I simply want to auto select the very first visible row when changing pages in my grid. Here is the code I have in place…
myGrid.attachEvent("onPageChanged", function(ind,fInd,lInd){
myGrid.selectRow(fInd,true);
});
And this works fine so long as the page was already loaded ahead of time. But when it has to go out and fetch the data this does not work. I tried putting the selectRow in the onXLE event but that only fires when it goes out to fetch new grid data. How do I solve this? Do I have to put a setTimeout in the onPageChanged event? I hate doing things that way as it seems like a hack and you can never be sure it’ll work as expected cause of network delays.