Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
How to attach an event to a button on the grid?
posted

Hi,

I am using Ultrawebgrid which has buttons on all the row. I have achieved that using

webGrid.Bands[0].Columns.FromKey("ViewIt").Type = ColumnType.Button; 

I need to have a client side event attached for the same button.

I tried with ultraWebGrid.DisplayLayout.ClientSideEvents.CellClickHandler = "ViewClicked"; This is causing the event to be fired on click of any of the cells in the grid.

What needs to be done so that I can have a clientside event attached only to this button?

 

Thanks

Sharath