radajaxloadingpanel only with postback

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    35 posts
    Member since:
    Jan 2011

    Posted 13 Sep 2013 Link to this post

    Hello Community,

    maybe i misunderstood the radajaxloadingpanel control... So i try to explain my request.

    On my Site i have a Button who opens a RadWindow (like this KreditberechnungErgebnis.OpenerElementID = lbBerechnen.ClientID).
    So it does a Postback and i do something code behind.

    At this Point i just want to bridge over the Postback for my Users, with the radajaxloadingpanel.
    I don't want to reload any Controll on my Site.

    My Code look like this:

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            var currentLoadingPanel = null;
            var currentUpdatedControl = null;
            function RequestStart(sender, args) {
                currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
                if (args.get_eventTarget() == "<%= lbBerechnen.UniqueID%>") {
                    currentUpdatedControl = "<%= tabBearbeitung.ClientID%>";
                //show the loading panel over the updated control
            function ResponseEnd() {
                //hide the loading panel and clean up the global variables
                if (currentLoadingPanel != null)
                currentUpdatedControl = null;
                currentLoadingPanel = null;
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <telerik:AjaxSetting AjaxControlID="lbBerechnen">
                    <telerik:AjaxUpdatedControl ControlID="tabBearbeitung" LoadingPanelID="RadAjaxLoadingPanel1" />
        <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">

    <asp:LinkButton runat="server" Width="100px" ID="lbBerechnen" CssClass="button-theme">
                <span class="span_outer">
                    <span class="span_right">
                        <span class="span_left">
                            <span style="width: 92px;" class="span_inner">Berechnen</span>

    I actually don't want this:

    currentUpdatedControl = "<%= tabBearbeitung.ClientID%>";

    BTW, it does not work like anyway. :)

    Sorry for my bad Englich, i hope you understand me. If not i will try to explain it again.

    Thank you!
  2. Konstantin Dikov
    Konstantin Dikov avatar
    1744 posts

    Posted 18 Sep 2013 Link to this post

    Hello Daniel,

    From the provided information I am not able to fully understand the functionality that you want to achieve. 

    Nevertheless, when you are setting the "LinkButton" control as opener element of the "RadWindow", the button is no longer doing postback on click. You could however overcome that limitation by handling the "OnClientClick" client-side event of the "LinkButton" and fire AJAX request through the "RadAjaxManager" with the "LinkButton.UniqueID" as parameter:
    function buttonClick() {
        var radAjaxManager1 = $find("<%= RadAjaxManager1.ClientID %>");
        radAjaxManager1.ajaxRequestWithTarget("<%= lbBerechnen.UniqueID %>", "");

    If the above does not solves the issue for you, please elaborate about the requirement you have and preferable open a regular support ticket with a sample, runnable project that isolates the problematic for further inspection.


    Konstantin Dikov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top