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
539
“ItemCommand” event not raising for template column as check box
posted

Dear all

I had put a check box as a template control inside a web grid and its working fine.

The problem comes when I tried to get the “ItemCommand” event. With the check box as template control the “ItemCommand” event is not raising but when I changed the check box to a button the event gets worked fine.

Is there any way by which I can raise the “ItemCommand” event from a web grid with a check box as a template control.

 

Regards

Rajesh Kamalakshan

 

Parents
No Data
Reply
  • 19308
    posted

    Rajesh,

    The CheckBox does not have "CommandName" or "CommandArgument" properties, and does not support the Command Event pattern.  You'll need to either manually hook up event listeners to your checkbox instances, or you can use the built-in CheckBox column type of the grid.

Children