Drop Down Button in Tile's Header Template

6 posts, 0 answers
  1. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 14 Sep 2010 Link to this post

    Hi
    I have sucessfully, in Blend, templated a Tile's header template. In this template I have a drop down button. Its drop down content is a radCalendar. However, at runtime the drop down content is not shown. Is this scenario possible?

    Thanks

    P
  2. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 15 Sep 2010 Link to this post

    HI

    Is there any movement on this? Only because if this is not possible I will have to use another approach

    Sorry for being a pest

    P
  3. DevCraft banner
  4. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 15 Sep 2010 Link to this post

    Anyone??
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Sep 2010 Link to this post

    Hi Paul Gallen,

    Please accept my apology for the delayed response. I am not sure if I understand your scenario correctly, so I prepared a sample project illustrating how to set a HeaderTemplate to a RadTileViewItem. It works as expected on our side. Can you please take a look at it and let me know if this is what you had in mind or if I am missing something.

    Also, if you need to  display the DropDownButton's content at design-time, you can set the RadDropDownButton IsOpen property to True.

    Also, you can use the RadDatePicker control instead of inserting a RadCalendar inside a RadDropDownButton. This approach is also illustrated in the attached example.

    Regards,
    Tina Stancheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. Paul Gallen
    Paul Gallen avatar
    156 posts
    Member since:
    Jun 2008

    Posted 20 Sep 2010 Link to this post

    Thanks Tina,

    Since I had no earlier response, I ditched the problematic template that I had created and embedded the required XAML in the radTileViewItem header section directly.

    The code example that you supplied is exactly what I required.

    Looking back over my template that I created, I had a stack panel instead of a grid for the container for the radDropDownButton. Although this rendered correctly in Blend (i.e. I could see the drop down content) at runtime this did not appear.

    P
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Sep 2010 Link to this post

    Hi Paul Gallen,

    I am glad you worked it out, but I thought it's good to mention anyway that the issue is caused by the fact that the RadTileView control by default is stretched throughout the available space. Since the StackPanel's size is infinity, the RadTileView cannot be properly displayed unless its size is implicitely defined.

    Kind regards,
    Tina Stancheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner