Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

grid button Options
Kevin
Posted: Thursday, May 18, 2017 3:52:27 PM
Rank: Newbie
Groups: Member

Joined: 3/7/2017
Posts: 8
Is there any way to launch c# code when a button is pressed on a particular row of a grid?
eo_support
Posted: Friday, May 19, 2017 8:52:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 19,248
Hi,

You can use ButtonColumn and set the Grid's RunningMode to Server if you wish to always raises server event when the button is clicked:

http://demo.essentialobjects.com/Demos/Grid/Features/Button%20Column/Demo.aspx

If you only want to raise server event when certain items are clicked, you can run the Grid in Client mode and then use JavaScript to handle the button click (through the Grid's ClientSideOnItemCommand property). Inside your event handler you can call this JavaScript method to raises the server event:

https://www.essentialobjects.com/doc/jsdoc.public.web.grid.raiseitemcommandevent.aspx

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.