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
340
ClickCellButton with 2 different buttons
posted

Hi

I have a webgrid with 2 buttons (column type button): "delete" and "change"

I am using the ClickCellButton event to perform the delete or change operations server side.

My problem is:

The same event seems to be fired when I click "delete" or when i click "change".

How can I check in this event which button has been clicked?

any help is kindly appreciated

Parents
  • 45049
    Verified Answer
    posted

    In the ClickCellButton event handler, e.Cell gives you a reference to the cell that contains the button you clicked.  You can look at e.Cell.Column.Key (or other properties off the column) to determine what action to take.

Reply Children
No Data