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

dataItem.set is not working when we have endless scrolling and grouping

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Purushotham
Top achievements
Rank 1
Purushotham asked on 02 Apr 2020, 07:20 PM

I have a kendo grid with grouping and endless scrollbar. I am trying to update dataItem(s) using dataItem.set with an external button click. dataItem.set is not firing change event and data is not being updated. 

 

Can someone help me with the issue.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Apr 2020, 10:38 AM

Hello Purushotham,

As this forum post is a duplicate to a support ticket I already replied to it will be closed. However, I am reposting the answer here so others reading can benefit from it.

Updating a value with the set() method when endless scrolling is enabled does not actually change the value on the client. Loading of new items happens when the scrollbar of the Grid reaches its end. When the data is returned, only the new items will be rendered and appended to the old ones. Below I am posting a dojo demonstrating login on the console the updated value:

As a solution to the case, I would suggest the approach demonstrated in the Refresh Particular Rows without Rendering the Entire Grid article:

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Purushotham
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or