RadCycleHubTile -- which element is active?

7 posts, 0 answers
  1. Eugene
    Eugene avatar
    7 posts
    Member since:
    May 2013

    Posted 15 Mar 2014 Link to this post

    Hey guys:

    So I've got a RadCycleHubTile control bound to an ObservableCollection, and set to not cycle randomly. I need to know which of the elements in the ObservableCollection is currently being displayed. Is there a way for me to do that?

    Thanks!

    P.S. How come HubTile isn't derived from an ItemsControl? Then we'd get a SelectedItem property, which would be very much in line with what the control seems to do... just curious.
  2. Eugene
    Eugene avatar
    7 posts
    Member since:
    May 2013

    Posted 16 Mar 2014 in reply to Eugene Link to this post

    Ok, I figured out one way to do this. Namely, to manually find the visualchild of the type I expect to be embedded within the RadCycleHubTile, and then get to its DataContext. 

    The problem is if I remove the data context of the item being displayed from ItemsSource (and even if I reset ItemsSource by setting it to null then back to the modified list), the item displayed continues being displayed. 

    Is there a way for me to force the control to change the displayed item to the next item in the ItemsSource array?
  3. DevCraft banner
  4. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 17 Mar 2014 Link to this post

    Hi Eugene,

    I am afraid that this is not the intended usage of a hub tile. A tile does not support the concept of selection. It is more like a button that displays some dynamic content. It is not a selector by design.

    Currently there is no supported way to achieve the desired behavior with any hub tile.

    Thanks for the feedback.
    We will consider whether there is something we can do on our side to support this scenario.
    Please write again if you have more questions.

    Regards,
    Victor
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  5. Eugene
    Eugene avatar
    7 posts
    Member since:
    May 2013

    Posted 17 Mar 2014 in reply to Victor Link to this post

    Hi Viktor:

    Thanks for your response. So to give you a bit more context, I'm essentially trying to allow the user to drag one of the displayed tiles out into a different location. Is there a different control I should use?

    Is there a way for me to get to the source code of RadCycleHubTile? Then I can just modify it to do what I want...

    Thanks!
  6. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 19 Mar 2014 Link to this post

    Hello Eugene,

    In the other thread about the tiles you mentioned that you downloaded the source. Feel free to ask us if you need guidance with its modification or if you need assistance with something else.

    Regards,
    Victor
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  7. Eugene
    Eugene avatar
    7 posts
    Member since:
    May 2013

    Posted 19 Mar 2014 in reply to Victor Link to this post

    Yup, should be good now. Trying to get just the source of the CycleHubControl to build without pulling the rest of the sources and xaml themes into the project is taking a bit of time, but I think I can manage. :)
  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 19 Mar 2014 Link to this post

    Awesome, we're on standby if you need help :).

    Regards,
    Victor
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
Back to Top
DevCraft banner