Problem in accessin user control radmenu

1 posts, 0 answers
  1. ayush mohan
    ayush mohan avatar
    7 posts
    Member since:
    Oct 2009

    Posted 15 Oct 2009 Link to this post

    I have a Rad Menu created in .CS class:-



    static Menu CreateTaskMenu()




    Menu tasksMenu = new Menu();



    RadMenuItem headerItem = new RadMenuItem();



    RadMenuItem seperatorItem = new RadMenuItem();


    seperatorItem.IsSeparator =




    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.ID =







    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.

Back to Top