Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1054661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:26:28+00:00 2026-05-16T17:26:28+00:00

I am having a context menu displayed when i right click on a node

  • 0

I am having a context menu displayed when i right click on a node of a treeview. Suppose my treeview is as follows

Root
|->some.txt
|-> Child(For some.txt)
|-> Child1(child for Child)

If i right click on Child1 i will have an option as AddNew. If the user selects i will show a user control form for the user displayed in a panel.

What i need is if the user selects the option as Child1 and if the user control is active and when the user again right clicks on Child1 i would like to make the context menu as non-selectable field. Can any ine tell how to do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:26:28+00:00Added an answer on May 16, 2026 at 5:26 pm

    Any modifications as to the selectability of ContextMenu Items depending on a scenario can be done in the Opening event of the ContextMenu.

    • Make sure you have a way of determining whether the usercontrol is visible (flag, Visibility, check for != null…whatever is appropriate in your situation)

    • define an opening handler for your contextmenu

    • in the opening handler, check if control is visible (see point 1)

    • if so, set the menu item’s enabled status to false, otherwise to true.

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a treeview initially with a root node when form is loaded.
I am having some trouble with my toast context for my submit button. I've
I'm having some difficulty with my Entity Framework context that is proving very troublesome
I am having some problems comparing the elements in different cell arrays. The context
I'm having some trouble getting my drop down menu to work. When you rollover
Goal: Display different context menu if right clicking a row from the listview or
I am having a lot of trouble understanding how the Android context menu works.
I'm having trouble understanding why I would use a context.xml file to declare a
I'm having an issue with pulling a Spring bean from an application context. When
I was learning through javascript's context and .apply() and .call() function and am having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.