RadListView- GroupBy dynamic selection

2 posts, 1 answers
  1. madhavi
    madhavi avatar
    30 posts
    Member since:
    Jul 2014

    Posted 06 Jan Link to this post

    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

  2. Answer
    Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 11 Jan Link to this post

    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.
Back to Top