iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a batchUpdtae method for the web grid in the codebehind page....
protected void grdRecipMilestone_BatchUpdate(object sender, BatchUpdateEventArgs e) {}
How do I call this method from the code behind page. I already know how to from the client side (grdRecip.AcceptAllChanges()), but need to do it from the code behind page as well.
Hi Jocelyn,To call BatchUpdate on WebGrid's event, you should use
grdRecipMilestone.PerformBatchUpdate(true, true);
If you want to save all changes, set parameter 1 to true. If you set it into false, it means that cancel all changes. And parameter 2 is set to true. It is used to set the WebGrid UI to be updated and set false to be un-updated.
PerformBatchUpdate method just updating the data on UI. The data just saved on cache and it is not update the database. However, this method call a batchUpdate event. In this event, you should get the data cache and update it into your database.
Attached is my simple runable sample using button click to apply the changes.
Hope this helps.Riendy
Thanks that helps...I also have another question. How to I access the grid from a page method? This is my page method function..
[WebMethod(EnableSession = true)] public static void SaveAcctStatus(string status, string name, string date, string typeofreturn) { //Set some values and then update grid
}
Hello Jocelyn,
I'm currently have not try to access the grid from a page method yet.Please give me a little time to check this out. I will let you know the updates soon.
Regards.Riendy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname