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

Using dynamic groups

7 Answers 220 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 29 May 2013, 05:31 PM
Is it possible to use dynamic groups with the RadTileList? My groups will be defined by my data and I need a way to bind this in MVVM.

7 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 04 Jun 2013, 07:55 AM
Hi Chris ,

The current version does not allow this. However we had some a few  similar requests and are already  researching for a way to make it happen.


Regards,
Pavel Pavlov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
mark
Top achievements
Rank 1
answered on 28 Aug 2013, 05:24 AM
Has this changed in the Q2 release? I am trying to get this setup using an ItemsControl with a horizontal stack panel as the ItemsPanelTemplate and a TilesList control in the ItemTemplate.
0
Maya
Telerik team
answered on 28 Aug 2013, 07:58 AM
Hello Mark,

Currently, such functionality is not supported out-of-the-box. Still, it can be achieved with a little bit of code. I am attaching a sample project illustrating how you can create groups in a more MVVM-friendly way.
I hope it helps. 

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Genaro
Top achievements
Rank 1
answered on 12 May 2014, 08:54 PM
Hi Maya,

I was unable to run the sample from the attached zip file (I am on VS 2010).

In any case, I copied the files (MainWindow.* and Extensions.cs) to my project and  it still did not work for me. The code creates a tile list with the 20 items as expected, but no group names are generated. If I put a breakpoint in the GetGroup method, it never gets hit. Any ideas?

Thanks,
Genaro
0
Maya
Telerik team
answered on 13 May 2014, 07:13 AM
Hello Genaro,

Unfortunately, I cannot guess based on the provided information. Will it be possible to update the project I previously attached so that it reproduces the behavior and send it back to me ?
Thank you in advance.


Regards,
Maya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Stephen
Top achievements
Rank 1
answered on 09 Jan 2015, 04:57 PM
Hi,

I'm currently needing to use Dynamic grouping as well. I have upgraded to the latest version (2014.3.1202.40) of the WPF controls and the Tile.Group property is now readonly. I'm thinking of reverting back to the old version when it was a settable object. Can you guys add support for dynamic grouping?

I tried setting the Group.Header and Group.DisplayIndex but during the event, those values see stale or out of sync. When I set the display index, an exception occurs when the telerik control fires off the   internal void InitializeGroupDisplayIndexes() method. In particular this is the piece that breaks:

            for (var index = 0; index < groupsCount; index++)
            {
                this.GroupsDisplayIndexes.Add(assignedDisplayIndexMap[index]);
            }

this breaks because that index map's value at array index 0 hasn't been initialized. This is weird because the tile.group.displayindex value was set before the event is triggered. I'm guessing that the index map isn't updated at the time of setting the tile.Group.DisplayIndex value.

I have the source code and can modify and rebuild but I'd rather not have to dive into your code and make sure the things I'm changing won't break anything else. I tried using the "GroupMember" Property but that doesn't render any headers when I run it - rather it puts all the tiles in one unnamed group.

The only way I've gotten dynamic grouping to work when the Group property was still an object (older telerik wpf version) was to set the group on the tilegenerating event, and then after the window rendered, take the itemsSource collection, cache it, clear the items source and then reload it. It's the most jank thing...

Do you guys have a workaround? I've seen this post http://www.telerik.com/forums/autogenerate-groups and simply setting GroupMember doesn't work on my machine. However, I didn't understand what was meant by "or by working with CollectionView with GroupDescriptions".

Thanks,

Steve
0
Stephen
Top achievements
Rank 1
answered on 09 Jan 2015, 06:56 PM
Please disregard. I was able to get the GroupMember to work as intended. 
Tags
TileList
Asked by
Chris
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
mark
Top achievements
Rank 1
Maya
Telerik team
Genaro
Top achievements
Rank 1
Stephen
Top achievements
Rank 1
Share this question
or