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
can i post all changes with formcollection in MVC page, and process them in server side?
Hello,
Do you mean that all changes (update, delete and insert) are using a form? Then with after input the information from this form collection, you want to Accept or process the batch update?I think it is not possible. All input from your form collection, should be integrated into our WebGrid before can accept/process the batch updates in server.In order to this scenario, you would need send your form information into WebGrid via javascript.e.g Insert a new row scenario. newRow.Update();With this way, WebGrid should able to recognize what changes has been made from your form collection.After that, you can accept that process via button click (serverside).e.g, WebGrid1.PerformBatchUpdate(true,true); WebGrid2.PerformBatchUpdate(true,true); Regards,Handy
1. if can't collect data into formcollection, it means WebGrid can't support MVC for edit.
2. WebGrid1.PerformBatchUpdate(true,true); WebGrid2.PerformBatchUpdate(true,true);it's two call, still not in one transaction, that's inaccessible for enterprise application.
I am sorry but it seems you missunderstood what I tried to say.Please see my attached sample. Even though It is not using BatchUpdate scenario, you can see that I edit or insert by using a form. Form collection data could not just directly be used like that. How can WebGrid recognize that field if you don't validate and assign any of form field collection information?You must assign that information into WebGrid.Also, You still need to perform each WebGrid. I still don't quite understand about what one transaction definition that you refered. I assume that called those functions from a button click can be also said as one transaction.
Regards,Handy
i'm afraid of it's transfered data size in this case. and can do it in MVC page?
If you have more than one WebGrid inside the page, you need to handle each of them in BatchUpdate scenario.Currently, you can also accept the changes via client side. Each of the control run the process separately because they do not have the same process.Regards,Handy
but i need them in one process, one transaction to keep data consistency.
Unfortunately, this cannot be done. Each control should have their own process.
I'm confused why others can user it in diff process, thus will broke data consistency.
I am not sure what you referred to. Our customer never reported something about inconsistency data. They run well without this problem. So, I am pretty sure that it would not cause that problem.
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