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

Bind Particular Item with database

1 Answer 25 Views
Menu
This is a migrated thread and some comments may be shown as answers.
pradeep kumar
Top achievements
Rank 1
pradeep kumar asked on 14 May 2010, 10:05 AM
Hello

Thanks in Advance...

I want to Add New Item in My radmenu that item should come through database only . In My existing rad menu is static that should be remain same I want to add one more item that should be come from database. How we can bind the Particular item dynamically

Thanks and Regards
Parveen Goyal

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 May 2010, 11:36 AM

Hello Parveen Goyal,

You could dynamically create the RadMenuItem and add the item to RadMenu Items collection.

C#:

 
//Creating item  
RadMenuItem item = new RadMenuItem("Item text"); // Get the item text by querying the db  
// Add the item to Items collection  
RadMenu1.Items.Add(item); 

Also the demo shows how to add new item from server : Add/Remove/Disable Items

-Shinu.

Tags
Menu
Asked by
pradeep kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or