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

Problem in accessin user control radmenu

0 Answers 41 Views
Menu
This is a migrated thread and some comments may be shown as answers.
ayush mohan
Top achievements
Rank 1
ayush mohan asked on 15 Oct 2009, 11:31 PM
I have a Rad Menu created in .CS class:-

public

 

static Menu CreateTaskMenu()

 

{

 

Menu tasksMenu = new Menu();

 

 

RadMenuItem headerItem = new RadMenuItem();

 

 

RadMenuItem seperatorItem = new RadMenuItem();

 

seperatorItem.IsSeparator =

true;

 

 

RadMenuItem taskItem1= new RadMenuItem();

 

taskItem1.Text = MARK_AS_COMPLETE;

taskItem1.Value = MARK_AS_COMPLETE;

 

RadMenuItem taskItem2 = new RadMenuItem();

 

taskItem1.Text = EDIT_TASK;

taskItem1.Value = EDIT_TASK;

 

RadMenuItem taskItem3 = new RadMenuItem();

 

taskItem1.Text = DELETE_TASK;

taskItem1.Value = DELETE_TASK;

 

RadMenuItem taskItem4 = new RadMenuItem();

 

taskItem1.Text = EMAIL_TASK;

taskItem1.Value = EMAIL_TASK;

 

tasksMenu.Items.Add(taskItem1);

tasksMenu.Items.Add(taskItem2);

tasksMenu.Items.Add(taskItem3);

tasksMenu.Items.Add(seperatorItem);

tasksMenu.Items.Add(taskItem4);

tasksMenu.ID =

"tasksMenu";

 

 

 

 

 

return tasksMenu;

 

}

I have a grid in which I have an image on click of which i want to display this menu.
The grid and this menu are placed in a user control which is again created in .CS and no .ascx file.

These main user control is to be accessed in a web part. I am not able to acess the client id as it is changing in web part than what it is in user control.

Please help me in this scenario.

No answers yet. Maybe you can help?

Tags
Menu
Asked by
ayush mohan
Top achievements
Rank 1
Share this question
or