How to find my RadListControl item from RadMenuItem event

2 posts, 0 answers
  1. pogy
    pogy avatar
    17 posts
    Member since:
    Mar 2014

    Posted 30 Mar 2014 Link to this post

    This is my RadMenuItem event after choose item from RadListControl:

            private void menuItemRemveFromList_Click(object sender, EventArgs e)


    All i want to do is to catch my RadListControl item index and RadListControl item text.
    How can i do that ?
  2. Dimitar
    Dimitar avatar
    1871 posts

    Posted 02 Apr 2014 Link to this post

    Hello Pogy ,

    Thank you for writing.

    To achieve the desired functionality, you can store the clicked item when the menu is shown and then use it in the  menu item Click event. For example, you can remove a particular item by clicking a context menu item with the following code:
    RadListVisualItem currentItem = null;
    void radListControl1_MouseDown(object sender, MouseEventArgs e)
        if (e.Button == MouseButtons.Right)
            RadListVisualItem clickedItem = radListControl1.ElementTree.GetElementAtPoint(e.Location) as RadListVisualItem;
            if (clickedItem != null)
                currentItem = clickedItem;
                contextMenu.Show(this.radListControl1, e.Location);
    void menuItem1_Click(object sender, EventArgs e)
        if (currentItem != null)

    If you have any questions, please do not hesitate to contact us.

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top