problem while selecting a row id by using getSelectedRowId()

problem while selecting a row id by using getSelectedRowId() of dhtmlxgrid and i need to fetch the data of selected row and populate it in another dhtmlxgrid.
one Ajax method is there before initializing after this if i alert particular row id then its not working

Serializing the current selected row and deserializing it to the other grid could be a way, I think?

Also you should make sure if appropriate row is loaded to the client side:

mygrid.load(url,function(){
//rows are loaded
//any custom logic here
});