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

Remove the dirty flag in kendo grid

7 Answers 198 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vaishali
Top achievements
Rank 1
Vaishali asked on 22 Jul 2019, 06:50 PM

Hi,

 

Here is the example of grid that I am trying - https://dojo.telerik.com/IsoDUruR/4. I want to remove the dirty flag once save button is clicked. However, it doesnt work. Any idea? 

 

Thanks!

7 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 Jul 2019, 07:50 AM
Hi Vaishali,

You can resolve this issue by fixing the js error in the following method:
function save()
{   
   $('#grid').data().kendoGrid.dataSource.sync();
}

https://dojo.telerik.com/IsoDUruR/5

That should do the trick.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Vaishali
Top achievements
Rank 1
answered on 24 Jul 2019, 05:23 AM
Thanks for catching the typo. Somehow, in my code, the row disappears and I am not able to reproduce it in the dojo example.
0
Eyup
Telerik team
answered on 24 Jul 2019, 07:28 AM
Hi Vaishali,

I'm glad the provided suggestion has proven helpful.
Feel free to turn to us if new questions arise.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Vaishali
Top achievements
Rank 1
answered on 24 Jul 2019, 01:09 PM
Hi, There was typo in the dojo example. However, it wasn't in my code. The dojo example works after fixing the typo but in my code the row disappears, Can you please help with that?
0
Vaishali
Top achievements
Rank 1
answered on 24 Jul 2019, 02:57 PM
Here is the screenshot
0
Vaishali
Top achievements
Rank 1
answered on 24 Jul 2019, 05:57 PM
Finally able to reproduce it in dojo as well: https://dojo.telerik.com/EJApItiX. Please check why the row is empty when save button is clicked.
0
Eyup
Telerik team
answered on 25 Jul 2019, 03:51 PM
Hi Vaishali,

Thank you for the sample.

You can remove the fields collection from the dataSource model and issue should be resolved:
https://dojo.telerik.com/EJApItiX/13

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Vaishali
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Vaishali
Top achievements
Rank 1
Share this question
or