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

Update Changed column value

1 Answer 86 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Rajender
Top achievements
Rank 1
Rajender asked on 19 Dec 2015, 06:50 AM

Hi,

As i need not refresh whole kendo grid i just want to update change value with previous column values.

 

Regards,

Rajender Kumar

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 23 Dec 2015, 03:55 PM

Hello Rajender,

Usually in order to update a field we suggest to use the set method of the model object. This will update the dataItem and will render/bind the Kendo UI Grid to apply the changes. 

I am afraid that there is no build method that applies modifications to the grid table without rebinding the grid itself. 

A possible solution would be to: 

   1. Update the model using "." notation: 

mode.ProductName = "customName";
   
    2. Set the dirty flag to true in order to mark the dataItem that is changed. 
mode.dirty = true;
    3. Find the cell element and change its value

Please note that this approach is not supported and it is rather custom solution. Our recommended approach is to use the set method and rebind the grid. 

 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Rajender
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or