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

[Solved] Define a contextMenu for INPUT type=text

1 Answer 129 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sune Dyrberg
Top achievements
Rank 1
Sune Dyrberg asked on 15 Mar 2010, 11:47 AM
Hi,

I have the following contextmenu in my tools.xml.

<contextMenu forElement="INPUT">
      <tool Name="TextField"></tool>      
 </contextMenu>    

Is it possible to define that the contextmenu only should be visible if the input-element has text as its type?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 17 Mar 2010, 04:54 PM
Hi Sune,

By design, RadEditor does not offer the requested functionality out of the box. However you can achieve this by dynamically populating the context menu depending on the type of the INPUT element. You can find example how to manipulate the context menus programmatically in this Code Library.

Greetings,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Sune Dyrberg
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or