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

grid button Options
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?
Posted: Friday, May 19, 2017 8:52:45 AM
Rank: Administration
Groups: Administration

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

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:


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:



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.