CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

IWCGjNavigator

by rhazell43 » 11 Feb 2014 10:03

Hello,

I have a grid & navigator both attache to the same datasource.

When I use the navigator to delete a record the record is deleted from the table, however, the row still shows in the grid.

How does one refresh the grid so that one row disappears? ReloadGrid appears to completely load resulting displaying back to the top of the data.

The same would be true if the underlying table was modified (by someone else, that I can detect myself)... how would I do a refresh of the grid to show the changes without changes which rows are currently displayed / selected.

TIA
rhazell43
 
Posts: 80
Joined: 29 Apr 2013 08:27

by Jorge Sousa » 11 Feb 2014 10:32

Hi

The grid is not db-aware, intentionally

To reload grid, you should check the documentation first - JQGridOptions.ReloadGrid;

http://www.cgdevtools.com/docs/_html/IWCGJQGrid.TIWCGJQGridOptions.htm
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by rhazell43 » 11 Feb 2014 13:22

Thanks for your reply.

Yes, I have read the documentation, quite thouroughly, both on your site and trirand website...

I understand that the grid is not "data aware".

As the programmer I am aware that a record has been deleted. I would like to make that deleted row disappear from displaying in the grid... How can achieve that?

I have tried ReloadGrid but it does a complete reload, and causes the grid to diplayed from the beginning with the first row at the top... just like its being displayed for the first time.

Is there a javascript method whereby I can remove a single row currnetly displayed on the screen?

TIA

Rick.
rhazell43
 
Posts: 80
Joined: 29 Apr 2013 08:27

by Jorge Sousa » 11 Feb 2014 13:29

Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQNavigator

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.