Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Menu > How can I mix static and dynamic items in Telerik's RadMenu for Silverlight?

Not answered How can I mix static and dynamic items in Telerik's RadMenu for Silverlight?

Feed from this thread
  • Jeffrey Lott avatar

    Posted on Jan 19, 2012 (permalink)

    I'm using Telerik's controls for Silverlight and I'm trying to get my data bound items to append to the end of my statically defined ones. I'm using the following code right now:

    telerikNavigation:RadMenuItem Header="Tag Categories" ItemsSource="{Binding SelectedItem.TagCategories}" 
                               
    DisplayMemberPath="Code" >
    <telerikNavigation:RadMenuItem Header="Create New" Command="{Binding AddNewTagCategoryCommand}" CommandParameter="{Binding SelectedTagCategory}">
       
    <telerikNavigation:RadMenuItem.Icon>
           
    <Image Style="{StaticResource ImageAddSmall}" />
       
    </telerikNavigation:RadMenuItem.Icon>
    </
    telerikNavigation:RadMenuItem>
    <telerikNavigation:RadMenuItem Header="Manage">
       
    <telerikNavigation:RadMenuItem.Icon>
           
    <Image Style="{StaticResource ImageEditSmall}"/>
       
    </telerikNavigation:RadMenuItem.Icon>
    </
    telerikNavigation:RadMenuItem>
    <telerikNavigation:RadSeparator />

    Unfortunately it's overwriting my statically defined items ("Create New" and "Manage") with the ones off of the ItemsSource. Is there some way to get both to place nice together?

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Jan 21, 2012 (permalink)

    Hello Jeffrey,

    You cannot mix static and dynamic items - this is two different ways of setting the ItemsSource of the menu. I can suggest you to add the static items in your collection.

    Kind regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Menu > How can I mix static and dynamic items in Telerik's RadMenu for Silverlight?
Related resources for "How can I mix static and dynamic items in Telerik's RadMenu for Silverlight?"

Silverlight Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]