RadContextMenu in RadDropDownButton

2 posts, 0 answers
  1. Edward
    Edward avatar
    13 posts
    Member since:
    Aug 2010

    Posted 30 Jul 2010 Link to this post

    This isn't working.  I cna't get the menu to expand in the dropdown



    d:DesignHeight="300" d:DesignWidth="400">

    <CollectionViewSource x:Key="reportsViewModelViewSource"
            d:DesignSource="{d:DesignInstance local:ReportViewModel, CreateList=True}" />
    < CollectionViewSource x:Key="reportTypeViewModelViewSource"
            d:DesignSource="{d:DesignInstance local:ReportTypeListViewModel, CreateList=True}" />

    <Grid x:Name="LayoutRoot" Background="White" DataContext="{StaticResource reportsViewModelViewSource}" >
    <RowDefinition Height="30"/>
    <RowDefinition Height="*"/>
    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="LightGray">
    <tel:RadToolBar x:Name="_toolsToolbar" Grid.Row="1" >
        <telerik:RadDropDownButton Tag="Open Exisiting Report" DataContext="{StaticResource reportTypeViewModelViewSource}">
        <Image Source="../images/report.png" ToolTipService.ToolTip="Open Existing Report" ToolTipService.Placement="Top" Width="16" Height="16" />
                <StackPanel Height="300" >
                    <telerikNav:RadContextMenu BorderThickness="1.5" ItemsSource="{Binding Model}" >
                            <telerik:HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
                                <TextBlock Text="{Binding Path=Name}" Foreground="Black" ToolTipService.ToolTip="{Binding Path=Name}" />

    <telerik:RadHtmlPlaceholder Grid.Row="1" x:Name="_htmlReport" SourceUrl="{Binding Path=SourceUri, Mode=TwoWay}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" />

    The menu does not appear when I try to expand it.  I nkow the data is there.  Can someone tell me what I am doing wrong?  I think it's not expanding correctly.
    The menu list will only be 2 deep.  They are ObservableCollection<ReportType>
    This is a ReportType:
    public partial class ReportType : INotifyPropertyChanged {

    #region Business
    public NodeType NodeType { get; set; }
    private string _name = String.Empty;
    public string Name {
    get { return _name; }
    set { _name = value; OnPropertyChanged("Name"); }

    private string _category = String.Empty;
    public string Category {
    get { return _category; }
    set { _category = value; OnPropertyChanged ("Category"); }




    private ObservableCollection<ReportType> _children;
    public ObservableCollection<ReportType> Children {
    get { return _children; }
    set { _children = value; OnPropertyChanged ("Children"); }
    #region INotifyPropertyChanged Members

    public event PropertyChangedEventHandler PropertyChanged;

    protected virtual void OnPropertyChanged(string propertyName) {
    if (PropertyChanged != null) {
    PropertyChanged (this, new PropertyChangedEventArgs (propertyName));






  2. Vladislav
    Vladislav avatar
    276 posts

    Posted 04 Aug 2010 Link to this post

    Hi Edward,

    Can you please check my answer in your support thread.

    All the best,
    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
Back to Top