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

Postpone client-side redrawing

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PJ Melies
Top achievements
Rank 1
PJ Melies asked on 10 Feb 2010, 12:17 AM
We're using a RadGrid with client side databinding pointing it to a webservice and specifying a SelectMethod.  This grid also has a 

GridClientDeleteColumn.  When a row is deleted we have a client side event handler tied to the RowDeleting event which is where we call another webservice to make the actual deletion.  Everything is handled by client side code - we have nothing in our code-behind.

Occasionally, it looks like the delete doesn't work.  What I believe is happening is that the grid is updating itself before the web method we call in the RowDeleting event handler has had a chance to complete.  Is there a way to control when the grid updates itself on the client?  What we would like to do is call the web service to delete the data in the RowDeleting event.  Then, in the webservice callback method we have specified we would update the grid. 

 

 

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 15 Feb 2010, 12:46 PM
Hello PJ Melies,

This scenario is not automatically supported in RadGrid when you use the client-side delete functionality. You will have to manually implement it. You can use a button or another click-able element in every row that will take the data key values of your item and set it to your web service for deletion. Once your item is deleted on the far end, you can request RadGrid's refreshed data source and rebind the grid. In this way, your deleted row will not be removed until your data record is deleted from the server and you rebind the grid.

Regards,
Veli
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.
Tags
Grid
Asked by
PJ Melies
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or