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
Sorry if this is already covered somewhere else - I've looked for it but was unable to find it.
I want the ability for the user to modify contents of the webgrid (databound) without giving the user the option to write the changes to the database. The reason is I have Audit modules that need to be called for every change in database, so ideally I'd like the user to make necessary changes in webgrid, click a client side button which would fire a process at back end to read details of the webgrid and manually make changes, whilst at the same time calling the audit modules with the changes.
Thanks,
Jason.
Hi Jason,
Regarding to your requirement, I've changed the sample. I also attach my sample here. I'm using another button as Pending Changes button and make it disable or enable regarding to its status. Please let me know if this sample meet your requirement or no. And if doesn't meet your requirement, please let know misconfiguration on my sample. Hope this helps.
Regards,Bernard
Glad, that you solved the problem. If you have any further question, please don't hesitate to ask us.
Regarding to your scenario, I think it's have the same behaviour like BatchUpdate in our WebGrid. This feature enables your end user to make multiple changes to the data in the client side, while at the same time maintaining the changes as they navigate the data around. WebGrid also submits all changes to server-side in a single request, the changes won't be updated to database after the data edited.
For references of BatchUpdate, please visit:http://intersoftpt.com/Support/WebGrid/Documentation/topic491.html
Hope this helps.
Thanks for the reply, however it is not exactly what I'm after. I don't want the webgrid to make any changes to the database at all, I need to handle the changes manually on the server side so that all the changes can go through my audit routine. I just need the ability for the user to make appropriate changes in the webgrid, and then manually server side read the details from the grid and then do the updates myself.
Essentially I want to give the user the ability to make changes in the grid, without the grid having the option of writing the changes to the database.
I attach my sample. I'm using button to update the data inside WebGrid to database. I also save the dirty row (edited row) in Hidden Field. Is my sample meet your requirement? Please tell me if there's misconfiguration in my sample. Hope this helps.
Hello Bernard,
Thanks for looking into this for me. Whilst the button you have on your example would work beautifully - exactly what I'm after, I notice that the webgrid still indicates that there are pending changes (not necessarily a bad thing), but more importantly can click on the "Accept all changes" and the webgrid will attempt to make the changes (which fails and a nasty error appears indicating no updating option is available on data source).
Is there anyway to disable the changes button - or even the Pending Changes message as well?
That was exactly what I was after - perfect!! Thanks for that.
On a side note - I had assigned a data source on the client side, which was still giving me issues - using your example as a guide, I changed my system to assign the datasource on the server side and it worked fantastically for me.
Thanks for your patience and help!
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