This is a migrated thread and some comments may be shown as answers.

ClientRowTemplate and Virtual Scrolling losing edits.

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hugues
Top achievements
Rank 1
Hugues asked on 05 Apr 2013, 06:26 PM
Hi, we have setup an ajax bound grid using a ClientRowTemplate. We also have virtual scrolling turned on. We noticed that if we make a change to a text box value, then scroll down low enough to make the record disappear, the value in the text field is lost. Is there a way to have these values persist? Will we need to store the data in javascript variables? Are there client-side events that are raised when a row goes out of view so that we can save edits? Any feedback is greatly welcomed. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 09 Apr 2013, 12:10 PM
Hi Huhues,


Basically preserving the not saved cell value after scroll to another page is not supported out-of-the-box and you should implement it using custom code. For example you can use the DataBinding event to check if there are cells in edit mode (with class "k-edit-cell") to find it's input and save it's value (and record id) to global variable. Then based on your custom requirement you can use the dataBound event to restore it's value using grid and dataSource client-side APIs. 

 

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Hugues
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or