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

How to use DropDownContentTemplate in RadDropDownButton

3 Answers 267 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Alexey Oyun
Top achievements
Rank 1
Alexey Oyun asked on 25 Aug 2010, 10:21 AM
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.

3 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 26 Aug 2010, 01:47 PM
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
0
Alex
Top achievements
Rank 1
answered on 26 Aug 2010, 01:54 PM
Hi,
So you mean I have to put Grid inside DropDownContent and assign template in DropDownContentTemplate property?
0
Viktor Tsvetkov
Telerik team
answered on 26 Aug 2010, 01:59 PM
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
Tags
Buttons
Asked by
Alexey Oyun
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Alex
Top achievements
Rank 1
Share this question
or