This is a migrated thread and some comments may be shown as answers.
Listview datasource grouping
5 Answers 48 Views
This is a migrated thread and some comments may be shown as answers.
Rene
Top achievements
Rank 1
Rene asked on 28 Aug 2015, 02:34 AM

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.

5 Answers, 1 is accepted

Sort by
0
eo
Top achievements
Rank 1
answered on 28 Aug 2015, 04:16 PM

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?

 

0
Rene
Top achievements
Rank 1
answered on 15 Sep 2015, 12:02 AM

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.

 

0
Nikolay Rusev
Telerik team
answered on 17 Sep 2015, 07:58 AM

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
0
Rene
Top achievements
Rank 1
answered on 18 Sep 2015, 04:31 AM

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...

0
Nikolay Rusev
Telerik team
answered on 18 Sep 2015, 02:58 PM

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
Asked by
Rene
Top achievements
Rank 1
Answers by
eo
Top achievements
Rank 1
Rene
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or