Using dynamic groups

8 posts, 0 answers
  1. Chris
    Chris avatar
    2 posts
    Member since:
    May 2013

    Posted 29 May 2013 Link to this post

    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.
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 04 Jun 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. mark
    mark avatar
    13 posts
    Member since:
    Sep 2010

    Posted 28 Aug 2013 Link to this post

    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.
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Aug 2013 Link to this post

    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 >>
  6. Genaro
    Genaro avatar
    1 posts
    Member since:
    May 2014

    Posted 12 May 2014 Link to this post

    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
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 13 May 2014 Link to this post

    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.
     
  8. Stephen
    Stephen avatar
    2 posts
    Member since:
    Dec 2014

    Posted 09 Jan 2015 in reply to Maya Link to this post

    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
  9. Stephen
    Stephen avatar
    2 posts
    Member since:
    Dec 2014

    Posted 09 Jan 2015 in reply to Stephen Link to this post

    Please disregard. I was able to get the GroupMember to work as intended. 
Back to Top
UI for WPF is Visual Studio 2017 Ready