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
Hi,
I’m using webgrid in a large ASP.NET project.
I want to use the nice feature to insert a new row using the “add new row bar” from the webgrid to save time developing a form to do so, and users like that too.
I’ve one big issue regarding the database.
So it currently linked to a datasource. This datasource has definition to the insert function that is pointing to a special code that is written to handle the inset in the database functionality. This insert function has a parameter for the object that handle the database insert functionality.
The issue is, I need to put some special data in the insert object, like the user ID, current date and time….etc
These special data can not be get from the add “new row bar” items because they all read only data in the grid and that can not be changed, and actually other items are not in the grid at all.
How can ask the GRID to trigger an event before it insert the new row passing the add new record data object, so I can put these data programmatically before it call the add new record API?
This is quit complicated and can not be fixed in any other way except WEBGRID to trigger event before adding the new record.
Please advise how to do so with sample code if this is applicable.
If not, can’t you add such feature in the WEBGRID? And when can we have that?
Thanks,
Maged Mikaeel
Hi Maged,
Maybe this is what you need: http://support.intersoftpt.com/docs/webgrid/5.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents~onbeforeadd.html
And the complete list of clientside events: http://support.intersoftpt.com/docs/webgrid/6.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents_properties.html.
Good luck.
As Herman said, we have a client side event called OnBeforeAdd. If you want to put some special data that needed to be passed before add a new row, OnBeforeAdd should be able to this requirement.
(Thank you Herman)
Regards,Handy
Thanks for your help, I got it working fine now.
Maged
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