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

Radoutlookbar ItemDropDownContentTemplate

4 Answers 104 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Kaarthikeyan
Top achievements
Rank 1
Kaarthikeyan asked on 19 Oct 2011, 06:28 AM
Hi,

I need to populate the dropdown menu available at the bottom of the Radoutlooktoolbar. The idea is to provide menus and submenus when the user clicks the dropdown menu (the small inverted triangle) currently am totally unable to do that. I used ItemDropDownContentTemplate to accomplish this. I used the following code snippet.

 

<

 

 

telerik:RadOutlookBar x:Name="RadOutlookBar1"

 

 

 

MaxWidth="760" ItemsSource="{Binding}"

 

 

 

ItemTemplate="{StaticResource BarTemplate}"

 

 

 

ContentTemplate="{StaticResource redefineoutlook}"

 

 

 

TitleTemplate="{StaticResource BarTemplate}"

 

 

 

Margin="0,0,330,0" ItemDropDownContentTemplate="{StaticResource BarTemplate}">

I am successfully able to populate the Itemtemplate,Content template and the Title templates however the ItemDropdownContentTemplate is the missing link.
Bartemplate is something like below:

 

 

 

 

<DataTemplate x:Key="BarTemplate" >

 

 

 

 

<TextBlock Text="{Binding Path=A}" FontWeight="Bold" />

 

 

 

 

</DataTemplate>

Note:This template works fine in Titletemplate, ItemTemplate. Have no clue why it is not working in ItemDropdownContentTemplate. Kindly advise me where am wrong. Also let me know if there is anyother way to accomplish my requirements. This is rather urgent I need to do this ASAP.

-Kaarthik(skmit87@gmail.com)

 

4 Answers, 1 is accepted

Sort by
0
Kaarthikeyan
Top achievements
Rank 1
answered on 19 Oct 2011, 07:01 AM
Hi ,

Jus adding to that earlier post. I observe that the dropdown menu(small inverted triangle) at the bottom of the RadoutlookToolbar is disabled. I am unable to perform the click operation on it, advise me how to populate this dropdown.

Thanks,
Kaarthik
0
Petar Mladenov
Telerik team
answered on 21 Oct 2011, 01:47 PM
Hello Kaarthikeyan,

 Please refer to the attached project and this captured video. I added ItemMInimizedTemplate in order to demonstrate how these template work. You can see that when I drag the horizontal splitter, the items go down in the MinimizedContent area which needs ItemMinimizedTemplate. When there is no place left in this are , the items go into the OverflowButton's DropDownContent which needs the ItemDropDownContentTemplate. This the default OutlookBar behavior. Do you need different functionality than this? Could you please elaborate more on your scenario if yes?

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kaarthikeyan
Top achievements
Rank 1
answered on 24 Oct 2011, 02:39 AM

Hi Petar,

I appreciate your prompt response. While I understand the functionality of ItemMinimizedTemplate and

 

ItemDropDownContentTemplate

from the sample project you provided, my requirement is slightly different am not looking at minimization of items. I need something like the one attached, i.e briefly i need to populate(always) the dropdown upon click with items as in outlook with some menuitems like in outlook.
                                               a)Show more buttons
                                                 b)Show fewer buttons
                                                c)Add navigation pane
                                                
The image i attached shows this and this i need to accomplish without any dragging of the horizontal splitter or in other words these menuitems should always popup whenever user clicks the dropdown (inverted triangle).

Kindly advise how i can realize this, am currently clueless on how to enable the dropdown menu, populate it with all these items.

Thanks,
Kaarthikeyan
0
Petar Mladenov
Telerik team
answered on 26 Oct 2011, 04:08 PM
Hi Kaarthikeyan,

 You have to edit the default ControlTemplate of the RadOutlookBar in order to change this button's appearance. However, we have previously created a feature request related in our PITS. You can vote for it in order to increase its development priority.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
OutlookBar
Asked by
Kaarthikeyan
Top achievements
Rank 1
Answers by
Kaarthikeyan
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or