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 6655559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:32:04+00:00 2026-05-26T01:32:04+00:00

Please forgive this stupid question. (I’m originally an ASP.NET programmer.) I’m trying to add

  • 0

Please forgive this stupid question. (I’m originally an ASP.NET programmer.)

I’m trying to add a telerik context menu to a textbox control in the code behind.

Adding it in the xaml is very easy (this works)

<TextBox AcceptsReturn="True" Text="{Binding Mode=TwoWay, Path=Description}" TextWrapping="Wrap" x:Name="txtIssues" Width="280" Height="100" VerticalScrollBarVisibility="Auto">
<telerikNavigation:RadContextMenu.ContextMenu>
    <telerikNavigation:RadContextMenu x:Name="contextMenu"
            ItemClick="ContextMenuClick">
        <telerikNavigation:RadMenuItem Header="Set Vista as Background" />
        <telerikNavigation:RadMenuItem Header="Set Beach as Background" />
        <telerikNavigation:RadMenuItem Header="Set Forest as Background" />
    </telerikNavigation:RadContextMenu>
</telerikNavigation:RadContextMenu.ContextMenu>
</TextBox>

However I would like to completely add the the control from c# code and I can’t find a why to add a control to a textbox. I’ve been looking for something like “txtIssues.Children.Add” but there doesn’t seem to be an option.

  • 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-26T01:32:05+00:00Added an answer on May 26, 2026 at 1:32 am

    First its best you understand that you are not adding a control to the TextBox. The RadContextMenu.ContextMenu is not a control it is an attached property.

    Funnily enough the Telerik documentation describes adding a context menu to a textbox in C#. See Working with the RadContextMenu. Sometimes “RTM” is actually good advice.

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

Sidebar

Related Questions

I'm new to jquery and asp.net so please forgive if this is an obvious
I'm a very novice OCaml programmer so please forgive me if this is a
I am still shiny new to XNA, so please forgive any stupid question and
Forgive me if this is a particularly stupid question! mysql_query($query) returns a boolean, but
I am newbie to VC++, so please forgive me if this is stupid. I
Please forgive if this question has been asked numerous times. I recently installed Eclipse
please forgive me if this is a noob question, but i'm a beginner at
Please forgive me up front. When I've tried to research this question I end
Please forgive me if this question has been asked and answered already. If so,
I am new to PHP so please forgive if this question or problem seem

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.