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

Done event for dataSource.sync

5 Answers 480 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 12 Mar 2012, 10:35 AM
Hi forum:
How can I know when dataSource.sync has completed?
Kind Regards
Oscar.

5 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 15 Mar 2012, 07:59 AM
Hello Oscar,

When sync operation completes the DataSource's change event will be raised. This will signal the bound widgets to refresh their content.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Oscar
Top achievements
Rank 1
answered on 04 Apr 2012, 05:13 PM
Hi Rosen,
It seems that dataSource change event is raised every time the user changes the value of a cell and leaves to any other one.
This is not what I need. I need only one event raised when all the changes that the user has made (add, itemChanges, and so on) have been completed. I want to close the page when all these changes have been completed in the server-side or notify the user of their changes have been saved.
How can I accomplish this?
Regards.
0
Rosen
Telerik team
answered on 05 Apr 2012, 09:24 AM
Hello Oscar,

Here is a simplified implementation of such functionality:


As a side note an action type will be passed as change event argument property, which to signal if the event is raised after add, remove or itemchange operation.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Oscar
Top achievements
Rank 1
answered on 05 Apr 2012, 03:48 PM
Hello Rosen,
Thank you for your help.
Would you please provide an example using a kendoGrid?

Regards.
0
Rosen
Telerik team
answered on 09 Apr 2012, 08:34 AM
Hi Oscar,

Here is the same basic approach as before but using the Grid widget:

 

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