Hi Experts,
I have a Check Box in the last column of as shown below <ig:WebDataGrid ID="wdgWOTaxPolicySettings" runat="server" AutoGenerateColumns="False" CellSpacing="1" EnableDataViewState="True" Height="100%" Width="100%" > <Columns> <ig:TemplateDataField Key="Total"> <ItemTemplate> <asp:CheckBox ID="chkIsTotal" runat="server" AutoPostBack="True" CausesValidation="True" /> </ItemTemplate> <Header TemplateId="Total" Text="Total" /> </ig:TemplateDataField>..................I need to capture the Checked event of the CheckBox in Page Plz Help me
Its Urgent for me
Hello,
I am looking into this matter, I will update you by the end of the day tomorrow with my progress.
Please let me know if I may be of further assistance with this matter.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Hi, <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBox_CheckedChanged"></asp:CheckBox> in code behind: Protected Sub CheckBox_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim chk As CheckBox = DirectCast(sender, CheckBox) End Sub Ed
Hi,
<asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBox_CheckedChanged"></asp:CheckBox>
in code behind:
Protected Sub CheckBox_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim chk As CheckBox = DirectCast(sender, CheckBox)
End Sub
Ed
I tried as per your sample...but unfortunately i am getting this following error...please help me to fix this since this is a urgent work...
Hi Mike,
Ok Please provide me the solution as quick as possible since it is a very urgent work...
Thanks
I have finished creating a sample to demonstrate how set the event for a checkbox in the WebDataGrid. I demonstrate doing with both a BoundCheckBoxField and UnboundCheckBoxField. Once this has been created I edit the Behaviors > EditingCore > EditingClientEvents and create a JavaScript function. From there you can get the cell then the column the cell belongs to and check the key to make sure it is you checkbox column.
For another example please see the following link.
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Data/Unbound-Checkbox-Column/Default.aspx?cn=data-grid&sid=2b5c08e1-23a8-43c6-a28c-7dc4aa1d8c43