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

Grid Datasource Sync Success Event

1 Answer 286 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 22 Feb 2012, 09:56 PM
OK... we sync to our data source but there is not event to let us respond with an event.

Use Case:
1. We add a new record to the browser grid dataset. (It shows up at the bottom of the grid. We want it at the top.)
2. We sync the data.
3. We read the data but it rarely has sync'd in time for the read to work, just pulls pre-sync'd data.

Of course if we could just get the added row to appear on top this would be a non-issue. :) I think we should have this event item added to the toolset just the same.

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 27 Feb 2012, 04:22 PM
Hello John,

In order to insert item to specific position within the DataSource local data, you may use its insert method instead add. Note that this position will not be maintained after new data is fetched from the server. 

All the best,
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
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or