Radoutlookbar ItemDropDownContentTemplate

5 posts, 0 answers
  1. Kaarthikeyan
    Kaarthikeyan avatar
    4 posts
    Member since:
    Sep 2011

    Posted 19 Oct 2011 Link to this post

    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)

     

  2. Kaarthikeyan
    Kaarthikeyan avatar
    4 posts
    Member since:
    Sep 2011

    Posted 19 Oct 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 21 Oct 2011 Link to this post

    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 >>

  5. Kaarthikeyan
    Kaarthikeyan avatar
    4 posts
    Member since:
    Sep 2011

    Posted 23 Oct 2011 Link to this post

    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
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 26 Oct 2011 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready