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

Cancel Radmenu or item server side ...

2 Answers 82 Views
Menu
This is a migrated thread and some comments may be shown as answers.
IQworks
Top achievements
Rank 1
IQworks asked on 25 Aug 2009, 02:34 AM
  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 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 27 Aug 2009, 09:11 AM
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.
0
IQworks
Top achievements
Rank 1
answered on 01 Sep 2009, 04:03 AM
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    
Tags
Menu
Asked by
IQworks
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
IQworks
Top achievements
Rank 1
Share this question
or