I have nested repeaters and checkbox in each row(like a tree view or ctaegory and items view).
each check/uncheck the category should check/uncheck the items.
any suggestions?
Thanks,
I have nested repeaters and checkbox in each row(like a tree view or ctaegory
Share
I had to do this before and I’ve done it with a simple JavaScript. Basically, when you bind you repeater, give the CategoryId to the checkbox’s check event, e.g.
have your child items wrapped around in a div with ID ending with CategoryId, e.g.
this will allow you to find it in your SelectCategory(catId) function by doing
loop through its children and check your items:
even better with jQuery: