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

RadScriptManager & RadAjaxManager

3 Answers 128 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
ying
Top achievements
Rank 1
ying asked on 30 May 2011, 08:51 AM
I Have RadAjaxManager and RadScriptManager , i used RadAjaxManager cotrol a button. but when i click the button, it doesnt response, when i comment for the RadAjaxManager, then the button can work d? anyone can help me solve the problem?

<telerik:RadScriptManager ID="ScriptManager1" runat="server"></telerik:RadScriptManager>
 
<telerik:RadWindow ID="RadWindow1" runat="server"
            Behaviors="Resize, Close, Move" Height="300px" Modal="True"
            NavigateUrl="ForgotPassword.aspx" Overlay="True" ReloadOnShow="True"
            VisibleStatusbar="False" Width="450px">
        </telerik:RadWindow>
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="lnkLogin">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="lnkLogin" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="lblMsg" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
this is my code

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 02 Jun 2011, 01:18 PM
Hi Ying,

In the declaration you have provided everything seems normal.

In order to troubleshoot this problem, please provide us with the declaration of your button. In case you have javascript code, please provide it as well.

Any additional information would be helpful.

Regards,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
ying
Top achievements
Rank 1
answered on 03 Jun 2011, 06:12 AM
  function requestStart(sender, args)
{
    alert(args.get_eventTarget());
     
    if (args.get_eventTarget().indexOf("txtLoginPW") > -1)
    {
        args.set_cancel(true);
        sender.ajaxRequestWithTarget("<%= lnkLogin.ClientID %>", '');
    }
}

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="True" CssClass="con11" ClientEvents-OnRequestStart="requestStart" >
                                       Logging In ...  <asp:Image id="loader" runat="server" ImageUrl="pic/Loader1.gif" ImageAlign="AbsMiddle"/>
                                     </telerik:RadAjaxLoadingPanel>

then the above code call for the request start function.
0
Dimitar Terziev
Telerik team
answered on 08 Jun 2011, 03:16 PM
Hi Ying,

The reason for the experienced behavior is the fact that with the current implementation your event handler function for requestStart is executed.

I've prepared a sample page implementing the desired behavior.

I hope this would help you out.

Kind regards,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ScriptManager and StyleSheetManager
Asked by
ying
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
ying
Top achievements
Rank 1
Share this question
or