Telerik Forums RSShttp://www.telerik.com/urn:uuid:ec3d1dae-8a98-44e5-9686-fcbba3b2756bhttp://www.telerik.com/forums/permalink/rh097JiK5USWhvy7o7J1awMake RadContextMenu ignore input controlsThanks Kate. &nbsp;That's just what I needed.<br>
This is what I ended up with<br>
<br>
function OnClientShowing(menu, args) {<br>
&nbsp; &nbsp; var target = args.get_targetElement();<br>
&nbsp; &nbsp; if (target) {<br>
&nbsp; &nbsp; &nbsp; &nbsp; var elementType = "";<br>
&nbsp; &nbsp; &nbsp; &nbsp; elementType = target.nodeName.toLowerCase();<br>
&nbsp; &nbsp; &nbsp; &nbsp; if (elementType == "input" || elementType == "textarea") {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; args.set_cancel(true);<br>
&nbsp; &nbsp; &nbsp; &nbsp; }<br>
&nbsp; &nbsp; }<br>
}urn:uuid:ab2cbdee-6191-484a-af60-4ee3592b6c52http://www.telerik.com/forums/permalink/7r0sq5FhSkivYE7jWStsUgMake RadContextMenu ignore input controlsHi Sam,<br />
<br />
One approach that you can try is to check the target element and cancel the&nbsp;<strong><a href="http://www.telerik.com/help/aspnet-ajax/menu-onclientshowing.html">OnClientShowing</a>&nbsp;</strong>event of the RadContextMenu. Thus you will prevent the menu from showing on the specific controls. Below you can find some very useful help articles that will provide with simple example to get you started:<br />
<br />
<a href="http://www.telerik.com/help/aspnet-ajax/menu-context-menus.html" target="_blank">http://www.telerik.com/help/aspnet-ajax/menu-context-menus.html</a><br />
<a href="http://www.telerik.com/help/aspnet-ajax/menu-onclientshowing.html" target="_blank">http://www.telerik.com/help/aspnet-ajax/menu-onclientshowing.html</a><br />
<br />
Regards,<br />
Kate <br />
Telerik
<div class="forumBaloonTop"></div>
<div class="forumBaloon">
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the <a href="http://feeds.feedburner.com/AspnetAjaxTeamsFeed?utm_source=SupportFooters&amp;utm_medium=banner&amp;utm_campaign=AJAX_blogs_supportfooters">blog feed</a> now.
</div>
<div class="forumBaloonBottom"></div>urn:uuid:139f8b06-b485-432a-a3c2-e5cd8dbc699fhttp://www.telerik.com/forums/permalink/BoufE4W0KkOjwuXNjbxpnwMake RadContextMenu ignore input controlsHi,<br>
<br>
I'm using RadContextMenu with the ContextMenuDocumentTarget and it works great because I can right click anywhere on the page to bring up the context menu.<br>
<br>
However, is there an easy way I can keep using&nbsp;<span style="font-size: 14px;">ContextMenuDocumentTarget but have it disabled on input controls like textboxes and text areas?<br>
<br>
</span>Basically, I want the default browser context menu to show up when right-clicking inside input controls, but every where else on the page, for the RadContextMenu to show.&nbsp;<br>
<br>
Thanks!