Listview datasource grouping

6 posts, 0 answers
  1. Rene
    Rene avatar
    65 posts
    Member since:
    Nov 2010

    Posted 27 Aug 2015 Link to this post

    I'm sharing a datasource between a grid and listview. Everything works great - except when the user groups in the grid - the listview is unable to deal with a datasource having groups.  Sorting and filtering works great.

     Would it be possible in the future to consider adding grouping to listviews where the listview code would use the same datasource functionality as found in the grid grouping functionality?

     Thanks,

     Rene.

  2. eo
    eo avatar
    27 posts
    Member since:
    Jul 2015

    Posted 28 Aug 2015 in reply to Rene Link to this post

    Hello Rene,

    sharing DataSources is not supported for the MVC wrappers, so I guess you're declaring it with JavaScript. Could you share the relevant part of your code so that I can take a look and see if I can be of any help?

     

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Rene
    Rene avatar
    65 posts
    Member since:
    Nov 2010

    Posted 14 Sep 2015 in reply to eo Link to this post

    I'm using both mvc wrappers and the pure js versions depending on the need.

    Yes - I have a datasource that is shared between a grid and a listview.  You can see a screenshot of it here:

     https://www.renepilon.com/ShowMessage?_id=6575cf40-a00f-b3a7-09a8-39d2dee1f079

    The 4th button on the right (looks like a rubik's cube above the grid size column) is used to toggle between grid view and list view.

    Everything works great (filtering,sorting) works fine - except if I kick in grouping on the grid - and when grouping on the grid, the listview will error out due to the item template used. 

    I haven't looked at the Kendo source - but I imagine when grouping, data maybe be put in different sub arrays to reflect the proper data grouping (don't quote me on that :-)).

     All I was getting at was that it would be nice if listviews could work with a datasource that has grouping in place - basically the same ideal as grids.

     

  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 17 Sep 2015 Link to this post

    Hello Rene,

     

    The ListView widget doesn't support grouping and when you group the DataSource it is not able to bind to the group items (which are formed).

     

    Regards,
    Nikolay Rusev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Rene
    Rene avatar
    65 posts
    Member since:
    Nov 2010

    Posted 17 Sep 2015 in reply to Nikolay Rusev Link to this post

    Yes I know it doesn't work :-)

     It would be a good new feature in the future - I can see many uses for grouped listviews... with group headers / footers for listiview cell groups...

  7. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 18 Sep 2015 Link to this post

    Hello Rene,

     

    You can submit this as a feature request on UserVoice, so that it is considered for implementation in a future release.

     

    Regards,
    Nikolay Rusev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET MVC is VS 2017 Ready