This is a migrated thread and some comments may be shown as answers.
Could the popup editor edits a row not shown in current page ?
2 Answers 5 Views
This is a migrated thread and some comments may be shown as answers.
Paolo
Top achievements
Rank 1
Paolo asked on 04 Oct 2017, 09:41 AM

Hi 

I have the following scenario:

  1. User is watching a grid with popup edit mode, paginated, with remote datasource
  2. He goes to page 5
  3. He presses edit on a single record
  4. After he follows an hyper link on the application and the URL change
  5. Now after visiting this URL he wants go back to the previous page, so he pressed browser back button where he was editing the record X on page 5

I thinks the back button presents the kendo grid starting again from page 1, so the edited record is not in the current page anymore

Questions

  • Can we open a grid popup for a record not in the current page of datasource ?
  • Could it be accomplished with kendo grid popup edit mode ?

If it cannot not be accomplished with native kendo grid behaviour what are your suggestions for the right implementation ? ( virtual scrolling ?)

thanks

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 06 Oct 2017, 06:24 AM
Hello, Paolo,

In this scenario, I can recommend checking our demo for persisting the Grid state. This will allow persisting the page number once the user navigates away from the Grid and then comes back:

http://demos.telerik.com/kendo-ui/grid/persist-state

Also, the same record can be set programmatically in edit mode using the editRow method. Please have in mind that we recommend using row indexes to determine which row of the page has to be set in edit mode. The row index can be retrieved on the edit event of the Grid:

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#methods-editRow

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-edit

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Paolo
Top achievements
Rank 1
answered on 06 Oct 2017, 03:43 PM

Hi Stefan, thanks for your quick response, I arrived to the same conclusion, for example going back with browser button after restoring current page from an URL parameter ( location.hash for example could be updated every time user changes page ) we can run editRow with the old row id

Thanks for clarifying the scenario

In our app we also played with grid options to persist column position and width, and it nicely works 

 

Tags
Grid
Asked by
Paolo
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Paolo
Top achievements
Rank 1
Share this question
or