This is a migrated thread and some comments may be shown as answers.

RadListView- GroupBy dynamic selection

1 Answer 91 Views
ListView
This is a migrated thread and some comments may be shown as answers.
madhavi
Top achievements
Rank 1
madhavi asked on 06 Jan 2017, 04:18 PM

Hi,

        I had designed ItemTemplate, LayoutTemplate, DataGroupTemplate in RadListView. Its working fine. Right now I am currently grouping by Date.

        In my scenario, user can select groupby option either by 'Date' or 'Name'. I tried to declare two DataGroupTemplates, buts its throwing error 'RadListView doesn't have Item place holder specified' . I am pointing to the same ItemPlaceholder(Item Template) in both the DataGroups.

       Is there a way to achieve this in RadListView, or should I create two RadListViews for each group and make visible/invisible accordingly.

Please advice,

thank you,

Madhavi

1 Answer, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 11 Jan 2017, 02:28 PM
Hi madhavi,

Basically you can add a second ListViewDataGroup and add a template to it. Please check out the following help article which elaborates more DataGrouping.
However, in case you need to show a different template based on a use choice you need to either create another ListView or create it programmatically as described in the following help article.

Regards,
Kostadin
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
ListView
Asked by
madhavi
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or