Cancel Radmenu or item server side ...

3 posts, 0 answers
  1. IQworks
    IQworks avatar
    374 posts
    Member since:
    Dec 2008

    Posted 24 Aug 2009 Link to this post

      Hi,
        I have this code snip of what my signiture looks like .....
     protected void RadMenu1_OnItemClick(object sender, RadMenuEventArgs e)  
            {  
            RadMenuItem ItemClicked = e.Item;  
            string mText = ItemClicked.Text.ToString(); 

        I am trying to figure out how to keep the loading panel from running when i just click on the menu. I thought that I could just cancel the flow in the click_event itself , like e.Cancel ?
       Here is my code for the loading panel ..... 
     <telerik:RadAjaxManagerProxy ID="RadAjaxManageriq1" runat="server" > 
            <AjaxSettings>          
                <telerik:AjaxSetting AjaxControlID="equipmentGrid">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="equipmentGrid" 
                          LoadingPanelID="RadAjaxLoadingPanel1" />    
                       <telerik:AjaxUpdatedControl ControlID="RadToolTipGeneralHelp" />                       
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
         </telerik:RadAjaxManagerProxy>   
          
          
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="5">  
            <table style="width: 100%; height: 100%;">  
                <tr style="height: 100%">  
                    <td align="center" valign="middle" style="width: 100%">  
                        <asp:Image ID="Image2" ImageUrl="~/mybodyscience/iqimages/Loading_Images/loading3.gif" 
                            BorderWidth="0px" Height="45px" Width="145px" AlternateText="Processing Data ...." 
                            runat="server"></asp:Image> 
                    </td> 
                </tr> 
            </table> 
        </telerik:RadAjaxLoadingPanel> 
         
     thanks for any advice ...  



  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 27 Aug 2009 Link to this post

    Hello IQworks,

    I am afraid that you cannot cancel the loading panel dyplaying.
    The loading panel is automatically hidden when the ajax request finishes. If you want to hide it explicitly, you can do it OnResponseEnd client-side event of RadAjax as shown here.
    If you want no loading panl to be displayed over the menu, please modify your ajax settings as below:

     <telerik:RadAjaxManagerProxy ID="RadAjaxManageriq1" runat="server" >    
            <AjaxSettings>             
                <telerik:AjaxSetting AjaxControlID="equipmentGrid">     
                    <UpdatedControls>    
                        <telerik:AjaxUpdatedControl ControlID="equipmentGrid" />       
                       <telerik:AjaxUpdatedControl ControlID="RadToolTipGeneralHelp" />                          
                    </UpdatedControls>    
                </telerik:AjaxSetting>    
            </AjaxSettings>    
         </telerik:RadAjaxManagerProxy>    
     


    All the best,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. IQworks
    IQworks avatar
    374 posts
    Member since:
    Dec 2008

    Posted 31 Aug 2009 Link to this post

    Hi ,
       My original problem was that I had a Radmenuitem called "Select View".  This Menuitem displays the 3 sub items on mouseover, they are "Detail View", "Summary View" and "Print".
      When I click on "Select View", I do not want the loading panel to show. 
      The way I took care of that finally was to use the "PostBack="false" property for this Radmenitem. 
     Sorry I didnt explain this correctly at the start.
      thanks for your help    
Back to Top