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

Show ContextMenu on disabled control

1 Answer 48 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 21 Oct 2014, 12:54 PM
Hi all,
I've this situation:

    <telerik:RadTextBox ID="txtTest" runat="server" Enabled="false" />
    <telerik:RadTextBox ID="RadTextBox1" runat="server" Enabled="true" />

    <telerik:RadContextMenu ID="cmTest" runat="server">
        <Targets>
            <telerik:ContextMenuControlTarget ControlID="txtTest" />
            <telerik:ContextMenuControlTarget ControlID="RadTextBox1" />
        </Targets>
        <Items>
            <telerik:RadMenuItem AccessKey="1" Text="Delete" />
            <telerik:RadMenuItem AccessKey="2" Text="Change Background Color" />
            <telerik:RadMenuItem AccessKey="2" Text="Change ForeColor" />
        </Items>
    </telerik:RadContextMenu>

how can I force to show contextmenu on the disabled radTextBox txtTest??
Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 24 Oct 2014, 12:35 PM
Hi Marco,

The "contextmenu" event is not fired when the input is disabled. This is a browser limitation and could not be workaround with the current implementation of the input and the context menu.

Regards,
Peter Filipov
Telerik
 

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.

 
Tags
Menu
Asked by
Marco
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or