Hi,
I currently have a Grid using batch edit mode (working quite nicely thanks to Telerik support) but I need to add a couple of features that are proving quite troublesome for me to implement.
The first is that the Save command in the grid is fine but I also have an ASP button on the page called "Post", which changes the status of the records entered (via SQL run from the codebehind). However, I would like the "Post" button to also save any changed/new/deleted records before it does its own thing.
I found client-side code (see below) that I thought would do the trick but its effects are overridden by the postback from the "Post" button.
Is there a way I can do this?
I have a similar problem with deleting records. Basically, I'm using a GridButtonColumn to provide a delete option but the deletes don't apply unless the user presses the save button. Our users keep missing this because once they see that the row has gone, they think the delete operation is complete. Is it possible to save the changes when the user either navigates away (using a control on the screen) or presses the "Post" button?
Regards
Geoff Scott
I currently have a Grid using batch edit mode (working quite nicely thanks to Telerik support) but I need to add a couple of features that are proving quite troublesome for me to implement.
The first is that the Save command in the grid is fine but I also have an ASP button on the page called "Post", which changes the status of the records entered (via SQL run from the codebehind). However, I would like the "Post" button to also save any changed/new/deleted records before it does its own thing.
I found client-side code (see below) that I thought would do the trick but its effects are overridden by the postback from the "Post" button.
var grid = $find("<%=RadGrid1.ClientID%>");
grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());
Is there a way I can do this?
I have a similar problem with deleting records. Basically, I'm using a GridButtonColumn to provide a delete option but the deletes don't apply unless the user presses the save button. Our users keep missing this because once they see that the row has gone, they think the delete operation is complete. Is it possible to save the changes when the user either navigates away (using a control on the screen) or presses the "Post" button?
Regards
Geoff Scott