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
445
Item command for Checkbox column
posted

I have a checkbox column inside a TemplateDataField, I would like to have ItemCommand event to be fired when I check/uncheck the checkbox column. My code is as below, but the item command event does not fire.

<ig:WebDataGrid ID="grdAdditions" runat="server" Width="100%"  
                                    EnableDataViewState="true" EnableAjax="false" EnableAjaxViewState="false"
                                    AutoGenerateColumns="false" DataKeyFields="AdditionID" ShowFooter="true"
                                    onitemcommand="grdAdditions_ItemCommand">

<Columns>
                                        <ig:TemplateDataField Key="Cleared" Header-Text="Clear">
                                            <ItemTemplate>
                                                <asp:CheckBox runat="server" ID="chkCleared" AutoPostBack="true"
                                                Checked='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "IsCleared") %>' />
                                            </ItemTemplate>
                                        </ig:TemplateDataField> 

</Columns>

</ig:WebDataGrid>

Parents
  • 20255
    Offline posted

    Hello Nagaraj,
    I'm just following up to see whether you've managed to resolve your issue.
    Let me know if you still need assistance.

Reply Children