show selected record after refresh

Hi
I have more records in grid than can be shown, so i scroll down. On a button i change the record and want the grid to display the change
A AjaxRerender does that but the record is off the page.
I tried the following code to get the record in the view but does not work the way i want.
What to do to get the record shown?
Eric
I have more records in grid than can be shown, so i scroll down. On a button i change the record and want the grid to display the change
A AjaxRerender does that but the record is off the page.
I tried the following code to get the record in the view but does not work the way i want.
What to do to get the record shown?
Eric
- Code: Select all
if UserSession.TrajectenRowID <> '' then
begin
try
codesite.Send('UserSession.TrajectenRowID');
grdMain.JQGridOptions.SetSelection(UserSession.TrajectenRowID, True);
except
end;
end;