How can I set the menu sub item value from the code behiend

4 posts, 0 answers
  1. ashok
    ashok avatar
    6 posts
    Member since:
    Mar 2008

    Posted 18 Jun 2009 Link to this post

    Hi All,

    I defiend a property x:Name="mnuUserList" for Users sub Menu item do i set the Header="Users..."  from the code behiend.

    I write the code given below it's not giving any compile time or runtime error but menu item is not showing.

    Thanks! in advance,
    Can anybody tell me the solution for this problem.

     

    <

     

    telerikNavigation:RadMenu VerticalAlignment="Top" Grid.Column="0" FontFamily="verdana" FontSize="12" Grid.Row="0" Width="1014" HorizontalAlignment="Left" x:Name="menu"

     

     

     

     

     

     

    ClickToOpen="False" >

     

     

     

    <

     

    telerikNavigation:RadMenuItem x:Name="mnuUser" Header="Users">

     

     

     

        <telerikNavigation:RadMenuItem x:Name="mnuUserList" Header="Users..." Click="mnuUserList_Click">

     

     

     

            <telerikNavigation:RadMenuItem.Icon>

     

     

     

                <Image Source="../Common/Images/userlist.png" />

     

     

     

            </telerikNavigation:RadMenuItem.Icon>

     

     

     

        </telerikNavigation:RadMenuItem >

     

     

     

    <telerikNavigation:RadMenuItem x:Name="mnuAddUser" Header="Add User..." Click="mnuAddNewUser_Click">

     

     

     

        <telerikNavigation:RadMenuItem.Icon>

     

     

     

            <Image Source="../Common/Images/add-newuser.png" />

     

     

     

        </telerikNavigation:RadMenuItem.Icon>

     

     

     

    </telerikNavigation:RadMenuItem>

     

     

     

     

     

    </telerikNavigation:RadMenuItem>
    </telerikNavigation:RadMenu>

     

     

     


     

     

    this

     

    .mnuUser.Header = "Users";

     

     

    this.mnuUserList.Header="Users..." 
    this.mnuAddUser.Header="Add User..."

     

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 19 Jun 2009 Link to this post

    Hi ashok,

    The attached application seems to work as expected, am I missing something?

    Best wishes,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. ashok
    ashok avatar
    6 posts
    Member since:
    Mar 2008

    Posted 22 Jun 2009 Link to this post

    It's working fine in this small sample app. but i still have the same issue with my application, I don't know why!
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 22 Jun 2009 Link to this post

    Hi ashok,

    Could you modify the application I attached so it can be used to reproduce the problem you have. Then open a new support ticket and attach it there. I will respond with a solution ASAP.

    All the best,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top