Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
How to add a select all records of all groups on checkbox in HeaderPrefixArea
posted

Hello Team,

i am using Infragistics 15.2 and has implemented group by record presenter style and now want to check all the records and group by records on selection of checkbox in headerprefix area.

I have attached stylesheet and image that how I want.

Can you please help me with that?

I have referred Post. I want to ad checkbox top of all the group

How to add a checkbox to every group header? (and handle click/change event)

Checkbox in header.zip
Parents
No Data
Reply
  • 34510
    Offline posted

    Hi Vikram,

    I took a look at your code and style and it looks like you already have the Checkbox displayed in ever group header.  I also see that your style references some behaviors that were not provided so I'm not sure how much of this you have implemented.  But if you have a behavior written then this should be an ok way to handle the Checkbox Checked event.

    You can handle the event and then grab the GroupByRecord which is the DataContext for the Checkbox.  With the GroupByRecord you can iterate through it's children and select the records as desired.  GroupByRecord has a ChildRecords collection you can iterate over.  And since you have bound the Checkbox to the Tag property of the record that should persist the check state as you scroll since the underlying GroupByRecords are not virtualized, just their UI elements.

Children