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

[Solved] Kendo Ui grid losing Dirty red mark reset

1 Answer 291 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Samir
Top achievements
Rank 1
Samir asked on 03 Mar 2015, 05:41 AM
Hi,

I have editable grid with text and template columns.

I have an Template columnd in kendo Grid. On click of which we open the new window by passsing the Uid of current row.


                        {
                            title: 'tst',
                            template: '<input type="text" class="k-input" id="txt_GridLookup_#=uid#" style="width: 100px;height:18px" value="#=text#" disabled /><input type="hidden" id="hdn_Gridguid_#=uid#" value="#=cavalue#"/><input type="button" name="" text="" class="search" onclick="openWindow(\'#=uid#\');"/>',
                            sortable: false,
                            width: 35

                        },


When user closes the window we set the other column values of current rows as given below. 
var item = entityGrid.dataSource.getByUid(selectedLookupUid);
item.set("Columnfield", "Hey");

Everthing is fine. Problem is it resets every thing in data source and removes dirty symbol. We are not able to identify dirty fields.

I want red mark that is shown in every modified cell. The red mark is shown when we modify any cell. Please see attached screen shot of red cell.

Please help.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 04 Mar 2015, 01:59 PM
Hello Samir,

I would recommend checking this example, which illustrates how the dirty cell markers can be preserved.

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