Page 1 of 1

show selected record after refresh

PostPosted: 08 Mar 2020 11:57
by etwoss
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

Code: Select all
  if UserSession.TrajectenRowID <> '' then
  begin
    try
      codesite.Send('UserSession.TrajectenRowID');
      grdMain.JQGridOptions.SetSelection(UserSession.TrajectenRowID, True);
    except
    end;
  end;

Re: show selected record after refresh

PostPosted: 16 Mar 2020 12:10
by Alexander Bulei
Hi etwoss,
What do you mean with "record is off"?
Do you have infinite scroll? the record is in another page?

Re: show selected record after refresh

PostPosted: 17 Mar 2020 13:32
by etwoss
Hi

The grid is refreshed, the record i want to be displayed is in the grid but i need to scroll down to see it. No paging implemented

Eric

Re: show selected record after refresh

PostPosted: 31 Mar 2020 14:27
by Alexander Bulei
Hi Eric,
Please enable the scrollrows property.

Best Regards.

Re: show selected record after refresh

PostPosted: 02 Apr 2020 13:48
by etwoss
Hi

Nice, working, thanks again!

Eric