Hi, I have a listbox control. I have created a ItemTemplate for this listbox which has two controls within it.
- Toggle Button
- Listbox Control
Structure
Basically the Listbox2 is a CheckedListbox. My requirement is as follows 1. Bind the ToggleButton to Listbox1 SelectedItem.i.e if 4 item is selected in Listbox1 then the togglebutton of 4th item should get checked automatically and other togglebutton should get unchecked. 2. If the ToggleButton is checked then All Checkboxes in Listbox2 should automatically selected. Also if one of the checkboxe s in Listbox2 is unselected then ToogleButton should get unchecked automatically. (This functionality is similar to TreeNode and childnode functionality. If parentnode is checked then all childnodes get selected and if one of the childnode is unselected parentnode should get unselected).
Can you please help me out in doing this.