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

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

3 Answers 41 Views
Menu
This is a migrated thread and some comments may be shown as answers.
ashok
Top achievements
Rank 1
ashok asked on 18 Jun 2009, 04:02 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 19 Jun 2009, 09:40 AM
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.
0
ashok
Top achievements
Rank 1
answered on 22 Jun 2009, 02:44 PM
It's working fine in this small sample app. but i still have the same issue with my application, I don't know why!
0
Valeri Hristov
Telerik team
answered on 22 Jun 2009, 02:50 PM
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.
Tags
Menu
Asked by
ashok
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
ashok
Top achievements
Rank 1
Share this question
or