Page 1 of 1

IWCGjNavigator

PostPosted: 11 Feb 2014 10:03
by rhazell43
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

Re: IWCGjNavigator

PostPosted: 11 Feb 2014 10:32
by Jorge Sousa
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

Re: IWCGjNavigator

PostPosted: 11 Feb 2014 13:22
by rhazell43
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.

Re: IWCGjNavigator

PostPosted: 11 Feb 2014 13:29
by Jorge Sousa