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

RadAjaxManager - RadAjaxLoadingPanel no works :(

3 Answers 70 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 22 Sep 2009, 05:09 PM
Hello All,

I'm relatevely new to these suite of controls which are pretty cool.currently I'm facing a problem

I have a page that works normally however I just try to add a loading message everytime a code behind action is done, but now it is not fired :( .. I may not configure it well.

This is part of the code:
<telerik:RadStyleSheetManager ID="rssFileUpload" runat="server">  
</telerik:RadStyleSheetManager> 
      
<telerik:RadScriptManager ID="rsmFileUpload" runat="server">  
</telerik:RadScriptManager> 
      
<telerik:RadAjaxManager ID="ramFileUpload" runat="server">  
  <AjaxSettings> 
     <telerik:AjaxSetting AjaxControlID="btnNext">  
       <UpdatedControls> 
         <telerik:AjaxUpdatedControl ControlID="pnUploadGeneral" LoadingPanelID="ralFileUpload" /> 
       </UpdatedControls> 
     </telerik:AjaxSetting>              
  </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadWindowManager   ID="rwmFileUpload" 
                            runat="server" 
                            Skin="Web20" 
                            VisibleStatusbar="false" 
                            > 
</telerik:RadWindowManager>      
 
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">  
        <tr style="width:100%">  
            <td style="width:100%">  
                <asp:Panel ID="pnUploadGeneral" runat="server" Width="100%" /> 
            </td> 
        </tr> 
        <tr style="width:100%">  
            <td align="right">                  
                <asp:Button ID="btnBack" runat="server" Text="Back" Width="100px"   
                    onclick="btnBack_Click" /> 
                <asp:Button ID="btnNext" runat="server" Text="Next"   
                    onclick="btnSubmit_Click" Width="100px" CausesValidation="true"/>  
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="100px" />                  
            </td> 
        </tr> 
    </table> 
 
<telerik:RadAjaxLoadingPanel ID="ralFileUpload" runat="server" Height="75px" Width="75px">  
        Loading  
</telerik:RadAjaxLoadingPanel>     
 

but every time I click btnNext, no code behid is executed, am I missing any configuration ?

Regards



3 Answers, 1 is accepted

Sort by
0
Lenny_shp
Top achievements
Rank 2
answered on 22 Sep 2009, 06:32 PM
What's in btnSubmit_Click?

Do you need AutoPostBack=true for the button?
0
Alex
Top achievements
Rank 1
answered on 22 Sep 2009, 07:19 PM

try  
        {  
            int intStep;  
            intStep = Convert.ToInt32(hdStep.Value);  
            intStepintStep = intStep + 1;  
            p_controlPanelVisibility(intStep);  
        }  
        catch (Exception ex)  
        {  
            bool rethrow = ExceptionPolicy.HandleException(ex, "Global Policy");  
            if (rethrow)  
                throw;  
        }              

Thanks for the reply

Code above corresponds to button click event ... and so far as I know, there is no auto post back in a regular asp net button

any clue is welcome ...
0
Pavlina
Telerik team
answered on 23 Sep 2009, 10:48 AM
Hello Alex,

Attached to this message is a simple runnable application which handles the desired functionality. Please give it a try and let me know what is the difference in your case.

Kind regards,
Pavlina
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.
Tags
Ajax
Asked by
Alex
Top achievements
Rank 1
Answers by
Lenny_shp
Top achievements
Rank 2
Alex
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or