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

Append row and detail template while scrolling without refresh data in grid

1 Answer 222 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Su Pei
Top achievements
Rank 1
Su Pei asked on 11 May 2017, 10:08 AM

Hi, 

I had follow the link below to append row while scrolling.. 

http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/binding/load-and-append-records

I created some textbox to let user fill in and I put it inside the detail template.. But after scrolling the grid, it rebind the data.. 

Is there any method not to refresh the datasource in grid and just append new row at the bottom while scrolling the grid? 

Thanks. 

Regards, 

Su Pei

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 15 May 2017, 06:37 AM
Hello Su Pei,

The Kendo UI Grid redraws itself every time it starts data binding. I can think of two options when the grid will not redraw after a change - when its data source is set for batch updates and when the dataBinding event is programmatically prevented.

Demo with detail template and data bound prevention: http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Editing/edit-master-row-data-in-detail-template
Demo with batch editing: http://demos.telerik.com/kendo-ui/grid/editing

I am not sure how the demo with scrolling is relevant here because in that demo, the Kendo UI Grid needs to be redrawn(dataBound) so in that scenario, it is not possible not to refresh the grid. 

Please provide a simple example to illustrate your scenario or elaborate the step by step process which creates the functionality in your application in case you need more help.
 
Kind Regards,
Alex Hajigeorgieva
Telerik by Progress
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 (charts) and form elements.
Tags
Grid
Asked by
Su Pei
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or