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

Need to insert data from one grid to the Parent Grid without Duplicate Data.

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
monsoon
Top achievements
Rank 1
monsoon asked on 26 Jun 2013, 07:48 AM
Hi,
I need suggestion of how to insert data from a grid to the other Grid (Parent Grid) and if the  Data is already  existing in Parent Grid then it  should not get inserted.Could any one help with an example.Thanks in Advance.

Regards,
Winds

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 28 Jun 2013, 05:22 AM
Hi Monsoon,

 
Basically you can achieve the desired behavior using the grid and it's dataSource API. For example you can get the given record dataItem and search for record with such ID in the parent grid using the get method. Then if such record is not available you can add it using the add method of the dataSource. Finally you can use the sync method to sync the changes with the server. 

Kind Regards,
Vladimir Iliev
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
monsoon
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or