Rad Window Is Not Visible ,In RadLoadingpanel .

3 posts, 0 answers
  1. Sairam
    Sairam avatar
    56 posts
    Member since:
    May 2013

    Posted 20 May 2013 Link to this post

    This Below Code is : check.aspx
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>
                <telerik:AjaxSetting AjaxControlID="RgCheckSetUp"><br>
                        <telerik:AjaxUpdatedControl ControlID="RgCheckSetUp" LoadingPanelID="RadAjaxLoadingPanel1" /><br>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"><br>
    /*Rad window */<br>
    <telerik:RadWindowManager ID="RadWindowManager2" runat="server" Behaviors="Default"<br>
                <%-- In Panel to Reset the CHK Number and EFT Number --%><br>
                <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Default" InitialBehaviors="None"<br>
                    Width="300px" Height="140px" VisibleOnPageLoad="false" Title="Reset Confirm"><br>
                                <td rowspan="2" style="width: 45px;"><br>
                                    <asp:Image ID="image" runat="server" ImageUrl="~/images/informationbank.png" CssClass="ImgHdAlertCss" /><br>
                                    <asp:Label ID="Label2" runat="server" Text="Do you want to reset your check number ?"<br>
                                    <telerik:RadButton ID="RbtnYes" runat="server" Text="Yes" OnClick="RbtnYes_Click"><br>
                                    <telerik:RadButton ID="RbtnNo" runat="server" Text="No" OnClick="RbtnNo_Click"><br>
    /*Rad Grid1 */<br>
    <telerik:RadGrid ID="RgCheckSetUp" runat="server" GridLines="None"><br>
     <MasterTableView AutoGenerateColumns="false" DataKeyNames="FedTaxID,FractionCode,chkNumber"><br>
     <telerik:GridTemplateColumn Visible="true" DataField="EFTNumber" HeaderText="EFT Number"<br>
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="EFTNumber"><br>
                            <%# Eval("EFTNumber")%><br>
                            <telerik:RadTextBox ID="rdtxtEFTNumber2" runat="server" Text='<%# Eval("EFTNumber") %>'<br>
                                Width="160px" onclick="shouldConfirm = true;" /><br>
                            <telerik:RadButton ID="RbtnResetEFTNo2" runat="server" Width="40px" AutoPostBack="true"<br>
                                CausesValidation="false" Text="Reset" OnClick="RbtnResetEFTNo_Click2"><br>
                            <telerik:RadTextBox ID="rdtxtEFTNumber" runat="server" Text='<%# Eval("EFTNumber") %>'<br>
                                Width="160px" onclick="shouldConfirm = true;" /><br>
                            <telerik:RadButton ID="RbtnResetEFTNo" runat="server" Width="40px" AutoPostBack="true"<br>
                                CausesValidation="false" Text="Reset" OnClick="RbtnResetEFTNo_Click"><br>

     protected void RbtnYes_Click(object serder, EventArgs e)<br>
            RadWindowManager2.Windows[0].VisibleOnPageLoad = false;<br>

    The following  code...When i am  remove the  ,Control ID=" " ,It's working But In ,Control ID="RgCheckSetUp" , i am using the "RgCheckSetUp" Rad grid id,
    Then button fire but Rad Window is Not visible in Loading Panel.
    can  please  help .

  2. Marin Bratanov
    Marin Bratanov avatar
    5819 posts

    Posted 23 May 2013 Link to this post

    Hi Sairam,

    This should be the expected behavior of MS AJAX - when you initiate a partial postback and changes server properties for given controls only the ones included in the response will be updated on the client and have effect. When you add the AJAX setting for the RadGrid the partial postback does not include the RadWindow and therefore changing its VisibleOnPageLoad property is not transfered to the client and therefore has no effect.

    What I would advise is that you employ the script registration approach from this sticky thread to open your RadWIndow: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx.

    Marin Bratanov
    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 their blog feed now.
  3. Sairam
    Sairam avatar
    56 posts
    Member since:
    May 2013

    Posted 24 May 2013 Link to this post

    Thanks Marin Bratanov ,using the Ajax setting  in "Rad Ajax manager"  and  "rad Window " server side registration ,task is successfully completed. Thanks Once again.
Back to Top