Posted on Jul 3, 2009
(permalink)
Hi,
I have a datagrid with a CheckBox column. I need this column to only have 1 check box check at any one time. I guess this would be possible through a javascript function? Please can you give me a tip on how to implement this. I have tried using OnCheckedChanged="CheckedChanged"
but this is server side. THat is ok, but a client side function would be preferable.
thanks
<telerik:GridTemplateColumn UniqueName="chkEmailAddrField" HeaderText="Email Address Field" HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:CheckBox id="chkEmailAddrField" runat="server" OnCheckedChanged="CheckedChanged" AutoPostBack="True" Checked='<%# DataBinder.Eval( Container, "DataItem.EmailAddrField") %>'></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
thanks
David (new to controls)