Show ContextMenu on disabled control

2 posts, 0 answers
  1. Marco
    Marco  avatar
    4 posts
    Member since:
    Mar 2014

    Posted 21 Oct 2014 Link to this post

    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
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 24 Oct 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top