ASP.NET[Web-Forms]: Check All Checkboxes in Listview Nested within another Listview

k@lkov

New Member
I have the following scenario:\[code\][ ] Supervisor 1 [ ] Employee 1 [ ] Employee 2 [ ] Employee 3[ ] Supervisor 2 [ ] Employee 7 [ ] Employee 8\[/code\]Assuming [ ] represents a CheckBox, what I want to do is if I check the CheckBox next to (Supervisor 1) I want only the Checkboxes next to (Employees 1, 2, 3) to be checked and if I check the CheckBox next to (Supervisor 2) I want to check only checkboxes (Employee 7, and 8)\[code\]<asp:ListView ID="SupervisorsListView" runat="server" /> <ItemTemplate> <asp:CheckBox ID="chkSupervisor" runat="server" /> <asp:ListView ID="EmployeesListViews" runat="server" > <ItemTemplate> <asp:CheckBox ID="chkEmployee" runat="server" /> </ItemTemplate> </asp:ListView> </ItemTemplate> </asp:ListView>\[/code\]I need to achieve this in client side preferably using jQuery, can anyone give me a hint on how to achieve this?Thank you.
 
Back
Top