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

set dirty

3 Answers 319 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 Oct 2014, 06:47 PM
Hi:
I'm populating a grid field from an on blur from a field in a tab strip.
How do I make the little red icon show in the grid signifying a dirty field so that my batch save will pick it up?

Thanks
Robert

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 22 Oct 2014, 06:22 AM
Hello Robert,

You should be using set method of the model in order to mark the model as dirty and next time sync is triggered the model will be send to the update action.

Regards,
Nikolay Rusev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Robert
Top achievements
Rank 1
answered on 23 Oct 2014, 03:25 PM


Nikolay:

All I’m doing is:

function changeDescription() {
var grid = $("#grid4").data("kendoGrid");
selectedRow.set('Description', $("#description").val());

}

Now All I need to mark the field as dirty in the grid.
Is this doable?
If so do you have a quick example?
Thanks
Robert

0
Nikolay Rusev
Telerik team
answered on 27 Oct 2014, 08:15 AM
Hello Robert,

The "dirty flag" is removed on very change of the DataSource which cause repaint of the Grid. There is a code-library demonstrating how to preserve the dirty indicator in incell editing and client operations.

Regards,
Nikolay Rusev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or