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
    <br>
    /*AjaxSettig*/<br>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>
            <AjaxSettings><br>
                <telerik:AjaxSetting AjaxControlID="RgCheckSetUp"><br>
                    <UpdatedControls><br>
                        <telerik:AjaxUpdatedControl ControlID="RgCheckSetUp" LoadingPanelID="RadAjaxLoadingPanel1" /><br>
                    </UpdatedControls><br>
                </telerik:AjaxSetting><br>
            </AjaxSettings><br>
        </telerik:RadAjaxManager><br>
    <br>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"><br>
        </telerik:RadAjaxLoadingPanel><br>
    /*Rad window */<br>
    <telerik:RadWindowManager ID="RadWindowManager2" runat="server" Behaviors="Default"<br>
            InitialBehavior="None"><br>
            <Windows><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>
                    <ContentTemplate><br>
                        <table><br>
                            <tr><br>
                                <td rowspan="2" style="width: 45px;"><br>
                                    <asp:Image ID="image" runat="server" ImageUrl="~/images/informationbank.png" CssClass="ImgHdAlertCss" /><br>
                                </td><br>
                                <td><br>
                                    <asp:Label ID="Label2" runat="server" Text="Do you want to reset your check number ?"<br>
                                        CssClass="Content2Css"></asp:Label><br>
                                </td><br>
                            </tr><br>
                            <tr><br>
                                <td><br>
                                    <telerik:RadButton ID="RbtnYes" runat="server" Text="Yes" OnClick="RbtnYes_Click"><br>
                                    </telerik:RadButton><br>
                                    &nbsp;<br>
                                    <telerik:RadButton ID="RbtnNo" runat="server" Text="No" OnClick="RbtnNo_Click"><br>
                                    </telerik:RadButton><br>
                                </td><br>
                            </tr><br>
                        </table><br>
                    </ContentTemplate><br>
                </telerik:RadWindow><br>
    </telerik:RadWindowManager><br>
    /*Rad Grid1 */<br>
    <telerik:RadGrid ID="RgCheckSetUp" runat="server" GridLines="None"><br>
     <MasterTableView AutoGenerateColumns="false" DataKeyNames="FedTaxID,FractionCode,chkNumber"><br>
    <columns><br>
     <telerik:GridTemplateColumn Visible="true" DataField="EFTNumber" HeaderText="EFT Number"<br>
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="EFTNumber"><br>
                        <%--EditFormColumnIndex="2"--%><br>
                        <ItemTemplate><br>
                            <%# Eval("EFTNumber")%><br>
                        </ItemTemplate><br>
                        <InsertItemTemplate><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:RadButton><br>
                        </InsertItemTemplate><br>
                        <EditItemTemplate><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>
                            </telerik:RadButton><br>
                        </EditItemTemplate><br>
                    </telerik:GridTemplateColumn><br>
    </column><br>
    </MasterTableView><br>
    </RadGrid>

     
    check.aspx.cs<br>
    <br>
    <br>
     protected void RbtnYes_Click(object serder, EventArgs e)<br>
        {<br>
            RadWindowManager2.Windows[0].VisibleOnPageLoad = false;<br>
        <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
    Admin
    Marin Bratanov avatar
    3596 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.


    Regards,
    Marin Bratanov
    Telerik
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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