create empty groups, and add elements in event
I am binding a class that contains a list, this list is empty and I want to fill it so that the groups appear but only when I fire the GroupExpanding event.
So, the listview starts grouped, when the user expands it should fill the list for that group only.
Hi Sergio Ayala,
We are validating your reported query. We will validate and update you in two business days. We appreciate your patience until then.
Regards,
Bagavathi Perumal A
Hi Sergio,
Regards,
Gokul T.
Attachment: SfListView_dfde8531.zip
the example you give me does not correspond to the one proposed by me, you already have the lists filled when you create the classes. I need the list to be filled when the row is ungrouped ()
Hi Sergio,
We have maintained two collections in the provided
As the group is expanded, items from the full list is added to the limited list based on the expanded group.
If we misunderstood your query, please provide more information about your query. So that we can prompt the solution further.
Regards,
Gokul T.
I have NOT explained myself well, you have the lists filled in the constructor and then you use them to fill the control. I need the lists to be filled with data during the event and not in the constructor, because the child elements are searched according to the selected group.
Hi Sergio Ayala,
If no data is added, SfListView will be empty. There needs to be one item per group so that we can expand it, hence one item per group in the constructor. When a group is expanded, we are adding an item that belongs to that group.
Please debug and check what data is maintained in both collections. If you are still unclear, please create a support ticket for further assistance.
Regards,
Bagavathi Perumal A