Hi,
I've found some posts about my issue, but no efficient response.
I have a WebHierarchicalDatagrid, with 2 levels of bands :
Customer 1 Customer Store 1 Software Licence 1 Software Licence 2 Software Licence 3
Customer Store 2 Software Licence 1
Customer 2 Customer Store 1 Software Licence 1 Software Licence 2
...
Each row of each level contains an unbound checkbox column, to allow me to select (for exemple) :
Unfortunatly, when I check a shop, it does not checks licences.
Same issue when I want to check all licences of all stores by checking a customer.
I've read and try this post : http://www.infragistics.com/community/forums/p/53859/313719.aspx
But it works only with a single level of bands. I have two.
Do you have a solution to this issue ?
Best regards
Thomas
Hello Thomas,
Attached sample describes how you can check the nested grid checkbox when parent checkboxes are checked.
Please let me know if you have any further questions regarding this matter.
Hi Surya,
Thanks, I would try it in the week and would keep you informed.
Have you had a chance to try Prabha's sample and did this resolve the issue you are facing to your satisfaction?
No, I have not had time to try.I will keep you informed when I could have tried.
Thanks,
I have tried the solution. It works well when clicking on a checkbox in a row.
But it doesn't works with the header checkbox. And ... I need it.
Is it possible ?
Regards,
Hi Thomas,
I've modified Prabha's sample slightly to allow for the header checkboxes to work as well. I added in the HeaderCheckBoxClicked event handler and extracted her logic in to a new method called ToggleChecked that accepts a grid, the containerGridRow, and the checked state. In CellValueChanged I simply call ToggleChecked as before. In HeaderCheckBoxClicked I iterate over every row in the grid for that header and then call ToggleChecked on each row.
I have attached the modified sample below. Please let me know if this meets your requirements or let me know if I may be of any other help.
It's ok for the first header, but I have two levels.
When I check the Compagny grid's header checkbos, it's ok, all stores and licences are checked too.
But when I check manually the store grid's header checkbox, it's doeas not work.
Company
Store
Licence
I would just disable the header checkbox for stores.
Thanks for your help.