Is there a way to group dataview items by some of the properties? If - not could you please implement it as it is a very desirable feature.
I want to be able to archive this:
Is there a way to group dataview items by some of the properties? If - not could you please implement it as it is a very desirable feature.
I want to be able to archive this:
Hello @Nikolai_Dimentiev,
There is DataCollection group method, that can be used for data grouping:
It also may be helpful the exact logic that you want to implement, so I’ll try to provide direct suggestions for implementing it in DataView component(or will send it to the devs, as feature request, if it won’t be possible with current API)
Warm regards,
Thanks for the quick reply.
You wrote:
It also may be helpful the exact logic that you want to implement…
Here is what i would like to archive:
If we have a dataView widget which displays cards of Users who have various properties like:
and so on…
I would like to render the cards on the page grouped by “Occupation” similar to the screenshot i have provided above - having a group header for each occupation group.
Header: Occupation - A :: 143 items
Card 1, Card 2, …, Card N.
Header: Occupation - B :: 202 items
Card 1, Card 2, …, Card N
and so on…
Let me know if it makes sense now.
An example how to implement the grouping would be highly appreciated.
Hello @Nikolai_Dimentiev,
Thank you the clarification. Currently, there is no such built-in option, but I already sent it to the dev team, and they will consider it for future versions.
Technically it may be implemented as a workaround, by creating multiple dataView components(for each group).
Here is an example of implementation:
https://snippet.dhtmlx.com/01dlbmfm
Warm regards,