I want to build a dynamic treeview with checkboxes from database for build a dynamic menu permission for different user’s level. The checkboxes will bind with values and keys. Those checkboxes will show the text and when its checked and saved, I will be able to get the correspond IDs from those checkboxes.
If someone please help me ?
Data in the tables
Menu Header TableA : Here Menu TableA has ID: TableA ID: SubMenuHeader: A1 TableA1 A2 TableA2 A3 TableA3 Menu TableB : Here Menu TableB has ID: TableB ID: SubMenuHeader: B1 TableB1 B2 TableB2 B3 TableB3 TableA1 ID: SubSubMenuHeader: RefMenuTable_ID: C1 TableC1 A1 C2 TableC2 A1 C3 TableC3 A1
The tree should looks like: please imagine the dot (*) as Checkbox
- TableA
- TableA1
- TableC1
- TableC2
- TableC3
- TableA2
- TableA3
- TableA1
- TableB
- TableB1
- TableB2
- TableB3
Thanks in advance !