I have few tabs, and each tab have its own grid and each row in grid have a check box.
Now I want to have checkbox on header of the tab then if I check the checkbox on tab header, all the rows should get checked under that tab.
So basically I need to have check box on header.
Hello Bhaskar,
I created and attached a small sample for you which illustrate one of the possible approaches to achieve what you need. You could check my sample and let me know if it suits to your requirments.
Another possible approach to achieve this might be by using a 'CreationFilter'.
You could read about it at the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2013.1/CLR4.0/html/Win_Creation_Filter.html.
Here are some topics from our community which could also help you:
http://community.infragistics.com/forums/t/34485.aspx, http://forums.infragistics.com/forums/t/47561.aspx http://community.infragistics.com/forums/t/58186.aspx, http://community.infragistics.com/forums/t/9989.aspx and http://community.infragistics.com/forums/t/50234.aspx.
The above approach is not so recommended, because it features element resizing, creating or removing and could lead to some unexpected behaviors.
Please do not hesitate to ask if something comes up.
Hi Kaloyan,
Thanks for your reply, your example helped me to learn something new, however it seems you misunderstood my question. I want to show the check box on tab header not on grid header. I want to select the tabs(by checking the check box) without visiting the each tab.
A possible aproach to achieve your goal is to use "CreationFilter" like i did in the attached sample. You could check it and let me know if this approach satisfy your requirements.
Please notice that everything related to this newly added checkboxes should be handled manually and because of that will hide a risk of unexpected behavior.
Please do not hesitate if you still have any other questions with this matter.
This is what I am looking for as per the UI. I have to work more on this to maintain state of the checkbox because currently every check box re-draws so I loosing the checkstate.
Hi Bhaskar,
Thank you for your feedback. We are glad that this is working for you.
Please do not hesitate to contact us if you still have any other questions with this matter.