CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

show selected record after refresh

by etwoss » 08 Mar 2020 11:57

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;
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 16 Mar 2020 12:10

Hi etwoss,
What do you mean with "record is off"?
Do you have infinite scroll? the record is in another page?
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 17 Mar 2020 13:32

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 31 Mar 2020 14:27

Hi Eric,
Please enable the scrollrows property.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by etwoss » 02 Apr 2020 13:48

Hi

Nice, working, thanks again!

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQGrid

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.