Hi!
I need to add a CheckBox to select/deselect all items in a CheckBoxList. The CheckBoxList is in the RadGrid's FormTemplate. My code is like this:
I tried to get the
Is there a way to select/deselect all
I need to add a CheckBox to select/deselect all items in a CheckBoxList. The CheckBoxList is in the RadGrid's FormTemplate. My code is like this:
<telerik:RadGrid ID="RadGrid1" runat="server" ... > ... <MasterTableView ...> ... <EditFormSettings EditFormType="Template"> <EditColumn UniqueName="EditCommandColumn1"></EditColumn> <FormTemplate> <table class="edit-table-rad" cellspacing="2" cellpadding="1" width="100%" border="0"> ... <tr> <td align="left" width="200px"> <b>Languages:</b><br /> <asp:CheckBox ID="chbSelectAllLanguage" runat="server" Text="Select All" ClientIDMode="Static"/> </td> <td> <asp:CheckBoxList ID="cblLanguage" runat="server" DataSourceID="entityDataSourceLanguage" DataTextField="LanguageName" DataValueField="LanguageID" RepeatColumns="4"> </asp:CheckBoxList> </td> </tr> ... </table> </FormTemplate> </EditFormSettings> </MasterTableView></telerik:RadGrid>I tried to get the
CheckBox with jQuery by ID or cssclass, but I think that the CheckBox in the RadGrid's FormTemplate is not in the DOM at document.ready time.Is there a way to select/deselect all
CheckBoxList items by selecting/deselecting the single CheckBox in the FormTemplate?