How to use DropDownContentTemplate in RadDropDownButton

4 posts, 0 answers
  1. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 25 Aug 2010 Link to this post

    Hi everybody,

    When I use DropDownContentTemplate drop down won't show.
    But when I move template content into RadDropDownButton.DropDownContent control shows drop down just fine.
    While this helps me to get control working, editing it in Blend is not as easy as if it was with template.

    So here is my question, could you give me example of drop-down button with DropDownContentTemplate in use.

    Thanks, Alexey.
  2. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 26 Aug 2010 Link to this post

    Hello Alexey Oyun,

    The use of templates without content is incorrect. You should have some content and then apply your custom template. So to make it works you should add some static content in the DropDownContent or to bind it to some data.

    Greetings,
    Viktor Tsvetkov
    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
  3. DevCraft banner
  4. Alex
    Alex avatar
    30 posts
    Member since:
    Aug 2010

    Posted 26 Aug 2010 Link to this post

    Hi,
    So you mean I have to put Grid inside DropDownContent and assign template in DropDownContentTemplate property?
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 26 Aug 2010 Link to this post

    Hello Alex,

    If you know exactly what your content is you can place it in the DropDownContent property. If your button is databound and you need to style the appearence of the data, you should apply custom template. So in your case I understand that you need to have some Grid as a content and you can simply place it in the DropDownContent.

    Best wishes,
    Viktor Tsvetkov
    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