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

[Solved] Client-side insert/update/delete without binding at all ?

2 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jocelyn Delsart
Top achievements
Rank 1
Jocelyn Delsart asked on 08 Mar 2010, 05:13 PM
Hello,

I apologize to be not the first person to ask such a question, but I couldn't find "the" ultimate answer I'm looking for in the recent past threads in this forum.

My purpose is to limit the server calls as much as possible, and thus to let the user perform his insert/update/delete operations client-side (with immediate effect in the grid on the screen) without a single server call.

The grid has to be initialized with data server-side, in a way or another (binding ? Manual server-side items adding ?) but after this initialisation, no more binding of any kind. Just manual addings in javascript, as many as the user wishes, and at last one unique call to the server in order make it refresh the database.

Thus, the client would notify the server about the changes made, instead of the contrary.

Is it possible and how ?

Thank you very much in advance,
Jocelyn

PS
Manually adding items client-side with javascript is simple. My actual problem is to retrieve these items in the server-side code at the server call moment, since the grid seems to be reinitialized at that moment, and to lose all the client operations done...

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 Mar 2010, 09:18 AM
Hello Jocelyn,

We have a new online example that demonstrates a scenario very similar to what you are describing. Here it is: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx

Hope it helps.

All the best,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jocelyn Delsart
Top achievements
Rank 1
answered on 11 Mar 2010, 09:31 AM
Oh, great !

This demo seems to achieve exactly what I need. I'll take time to study it.
Thank you very much ! :-)

Jocelyn
Tags
Grid
Asked by
Jocelyn Delsart
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Jocelyn Delsart
Top achievements
Rank 1
Share this question
or