Enable/Disable AjaxPanel To ContextMenu Items

2 posts, 0 answers
  1. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 30 Nov 2009 Link to this post

    i have contextmenu with Three items.
    I want to Disable the Ajax to 1 and 2 item(s), i want to enable ajax only to 0th item.
    1.Audio Download
    2.Document Download
    <telerik:RadContextMenu ID="RadCDMenu" runat="server" Skin="Hay" Style="position: static" Enabled="False" > 
                    <telerik:RadMenuItem runat="server" Text="View Details"
                    <telerik:RadMenuItem runat="server" Text="Audio Download"
                    <telerik:RadMenuItem runat="server" Text="Document Download"

    can any one help me how to do this .
    i did code like this in Page_Load.

      If RadCDMenu.Items(0).Selected = False Then
      End If
    but,it's not working properly.once i disable the ajax i can't able to Enable it.
    Here i have to Refresh the page, then only i am getting ajax Enable .

    can any one Help Me please....

    Thank You
    Suresh K
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Dec 2009 Link to this post

    Hello Suresh,

    Try disable the Ajax in the OnRequestStart client side method of the Ajax Panel based on which menu item was clicked: Check out teh section 'Disable AJAX for the current request' under the following help document:
    Exclude controls from ajaxifying

    Hope this suggestion helps..
Back to Top