RadAjaxLoadingPanel not working in a particular page.

3 posts, 0 answers
  1. Rahul
    Rahul avatar
    4 posts
    Member since:
    Sep 2010

    Posted 17 Dec 2010 Link to this post

    Hi,

    In this particular page RadAjaxLoadingPanel does not show up. Instead the Grid blinks. I have tried in other pages, it works. What cud be the issue?
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Website1.Forecast_Default" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <head id="Head1" runat="server">
        <title>STATS</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" runat="server" />
        <table border="0" cellpadding="2" style="width: 98%">
            <tr>
                <td>
                    <asp:Label runat="server" ID="lblMessage" SkinID="infoLabel" />
                </td>
            </tr>
            <tr>
                <td>
                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                        <table style="width: 100%">
                            <tr>
                                <td>
                                    <table style="width: 100%">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblNewTitleQueue" runat="server" Text="New Title Queue"></asp:Label>
                                            </td>
                                            <td align="right">
                                                <asp:ImageButton ID="imgNewGridClearFilter" runat="server" ImageUrl="~/App_Themes/STATS/Images/filter_clear.png"
                                                    ToolTip="Clear filter" OnClick="imgNewGridClearFilter_OnClick" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <telerik:RadGrid ID="rgNewQueue" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                                        AllowPaging="True" PageSize="5" AllowFilteringByColumn="true" OnSortCommand="rgNewQueue_OnSortCommand"
                                        OnPageIndexChanged="rgNewQueue_OnPageIndexChanged" OnPageSizeChanged="rgNewQueue_OnPageSizeChanged"
                                        OnItemCommand="rgNewQueue_OnItemCommand" Width="925px">
                                        <GroupingSettings CaseSensitive="false" />
                                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="ProductId" GridLines="None"
                                            AllowSorting="true" AllowPaging="true" ShowHeadersWhenNoRecords="true" EnableNoRecordsTemplate="true"
                                            NoMasterRecordsText="No titles found" AllowNaturalSort="false">
                                            <Columns>
                                                <telerik:GridTemplateColumn UniqueName="unqTitle" HeaderText="Title" SortExpression="Title"
                                                    AutoPostBackOnFilter="true" AllowFiltering="true" CurrentFilterFunction="Contains"
                                                    ShowFilterIcon="False" FilterControlWidth="150px" DataField="Title">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="lnkTitle" CommandName="cmdTitleSelect" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("Title")))%>'></asp:LinkButton>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqStudio" HeaderText="Studio" SortExpression="StudioName"
                                                    AutoPostBackOnFilter="true" AllowFiltering="true" CurrentFilterFunction="Contains"
                                                    ShowFilterIcon="False" FilterControlWidth="100px" DataField="StudioName">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblStudio" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("StudioName")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqGenre" HeaderText="Genre" SortExpression="GenreName"
                                                    AutoPostBackOnFilter="true" AllowFiltering="true" CurrentFilterFunction="Contains"
                                                    ShowFilterIcon="False" FilterControlWidth="60px" DataField="GenreName">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblGenre" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("GenreName")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqSRP" HeaderText="SRP" SortExpression="SRP"
                                                    AllowFiltering="false">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblCost" runat="server" Text='<%# DisplayCost(Convert.ToString(Eval("SRP")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqAWP" HeaderText="AWP" SortExpression="AWP"
                                                    AllowFiltering="false">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblListPrice" runat="server" Text='<%# DisplayCost(Convert.ToString(Eval("AWP")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqConfig" HeaderText="Config" SortExpression="ConfigCode"
                                                    AutoPostBackOnFilter="true" AllowFiltering="true" CurrentFilterFunction="Contains"
                                                    ShowFilterIcon="False" FilterControlWidth="60px" DataField="ConfigCode">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblConfig" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("ConfigCode")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqReleaseDate" HeaderText="Release Date"
                                                    SortExpression="ReleaseDate" AllowFiltering="false">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblReleaseDate" runat="server" Text='<%# DisplayDate(Convert.ToString(Eval("ReleaseDate")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqOrderDueDate" HeaderText="Order Due Date"
                                                    SortExpression="OrderDueDate" AllowFiltering="false">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblOrderDueDate" runat="server" Text='<%# DisplayDate(Convert.ToString(Eval("OrderDueDate")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                <telerik:GridTemplateColumn UniqueName="unqExclusive" HeaderText="Exclusive?" SortExpression="Exclusive"
                                                    AllowFiltering="false">
                                                    <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblExclusive" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("Exclusive")))%>'></asp:Label></ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </td>
                            </tr>
                        </table>
                    </telerik:RadAjaxPanel>
                </td>
            </tr>
            <tr>
                <td style="height: 25px">
                </td>
            </tr>
            <tr>
                <td style="height: 2px; background-color: Black">
                </td>
            </tr>
            <tr>
                <td style="height: 25px">
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 100%">
                        <tr>
                            <td>
                                <asp:Label ID="lblSearchTitle" runat="server" Text="Search for Title"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2">
                                <table cellspacing="15px" style="height: 100%">
                                    <tr>
                                        <td>
                                            <telerik:RadTextBox ID="rtxtTitle" runat="server" Text="" Width="150px">
                                            </telerik:RadTextBox><br />
                                            <asp:Label ID="lblTitle" runat="server" Text="Title"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="rtxtStudio" runat="server" Text="" Width="150px">
                                            </telerik:RadTextBox><br />
                                            <asp:Label ID="lblStudio" runat="server" Text="Studio"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadComboBox ID="rcbGenre" runat="server" Width="120px">
                                            </telerik:RadComboBox>
                                            <br />
                                            <asp:Label ID="lblGenre" runat="server" Text="Genre"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadComboBox ID="rcbConfig" runat="server" Width="75px">
                                            </telerik:RadComboBox>
                                            <br />
                                            <asp:Label ID="lblConfig" runat="server" Text="Config"></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <telerik:RadNumericTextBox ID="rtxtSRP" runat="server" Width="80px">
                                            </telerik:RadNumericTextBox><br />
                                            <asp:Label ID="lblSRP" runat="server" Text="SRP"></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <telerik:RadNumericTextBox ID="rtxtAWP" runat="server" Width="80px">
                                            </telerik:RadNumericTextBox><br />
                                            <asp:Label ID="lblAWP" runat="server" Text="AWP"></asp:Label>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadDatePicker ID="rdpRelDate" runat="server" Width="150px">
                                            </telerik:RadDatePicker>
                                            <br />
                                            <asp:Label ID="lblRelDate" runat="server" Text=" Release Date"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadDatePicker ID="rdpOrderDueDate" runat="server" Width="150px">
                                            </telerik:RadDatePicker>
                                            <br />
                                            <asp:Label ID="lblOrderDueDate" runat="server" Text="Order Due Date"></asp:Label>
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadComboBox ID="rcbStatus" runat="server" Width="150px">
                                            </telerik:RadComboBox>
                                            <br />
                                            <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
                                        </td>
                                        <td colspan="2">
                                            <asp:CheckBox ID="chkReturnItems" runat="server" Checked="true" Text="Return my items only"
                                                Width="150px" />
                                        </td>
                                        <td valign="top">
                                            <asp:Button ID="btnSearch" runat="server" Text="Search" Width="100px" OnClick="btnSearch_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table style="width: 100%">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblResults" runat="server" Text="Results:"></asp:Label>
                                        </td>
                                        <td align="right">
                                            <asp:ImageButton ID="imgResultsGridClearFilter" runat="server" ImageUrl="~/App_Themes/STATS/Images/filter_clear.png"
                                                ToolTip="Clear filter" OnClick="imgResultsGridClearFilter_OnClick" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadGrid ID="rgSearchTitle" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                                    AllowPaging="True" PageSize="5" OnSortCommand="rgSearchTitle_OnSortCommand" OnItemDataBound="rgSearchTitle_ItemDataBound"
                                    OnPageIndexChanged="rgSearchTitle_OnPageIndexChanged" OnPageSizeChanged="rgSearchTitle_OnPageSizeChanged"
                                    Width="925px">
                                    <GroupingSettings CaseSensitive="false" />
                                    <MasterTableView AutoGenerateColumns="false" DataKeyNames="ProductId" GridLines="None"
                                        AllowSorting="true" AllowPaging="true" ShowHeadersWhenNoRecords="true" EnableNoRecordsTemplate="true"
                                        NoMasterRecordsText="No titles found" AllowNaturalSort="false">
                                        <Columns>
                                            <telerik:GridTemplateColumn UniqueName="unqTitle" HeaderText="Title" SortExpression="Title"
                                                DataField="Title">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lnkTitle" PostBackUrl='<%# "~/Forecasting/TitleForecast.aspx?ProductId=" + Eval("ProductId").ToString()+"&ForecastId="+ Eval("ForecastId").ToString()%>'
                                                        runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("Title")))%>'></asp:LinkButton>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqConfig" HeaderText="Config" SortExpression="ConfigCode"
                                                DataField="Config">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblConfig" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("ConfigCode")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqStudio" HeaderText="Studio" SortExpression="StudioName"
                                                DataField="Studio">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblStudio" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("StudioName")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqGenre" HeaderText="Genre" SortExpression="GenreName"
                                                DataField="Genre">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Left" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblGenre" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("GenreName")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqSRP" HeaderText="SRP" SortExpression="SRP"
                                                AllowFiltering="false">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblCost" runat="server" Text='<%# DisplayCost(Convert.ToString(Eval("SRP")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqAWP" HeaderText="AWP" SortExpression="AWP"
                                                AllowFiltering="false">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblListPrice" runat="server" Text='<%# DisplayCost(Convert.ToString(Eval("AWP")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqReleaseDate" HeaderText="Release Date"
                                                SortExpression="ReleaseDate" AllowFiltering="false">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblReleaseDate" runat="server" Text='<%# DisplayDate(Convert.ToString(Eval("ReleaseDate")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqOrderDueDate" HeaderText="Order Due Date"
                                                SortExpression="OrderDueDate" AllowFiltering="false">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblOrderDueDate" runat="server" Text='<%# DisplayDate(Convert.ToString(Eval("OrderDueDate")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqStatus" HeaderText="Status" SortExpression="StatusName"
                                                AllowFiltering="false">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblStatus" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("ForecastStatusName")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn UniqueName="unqUpdatedBy" HeaderText="Last Updated By"
                                                SortExpression="LastUpdatedName" AllowFiltering="false">
                                                <ItemStyle VerticalAlign="Top" HorizontalAlign="Right" />
                                                <ItemTemplate>
                                                    <asp:Label ID="lblUpdatedBy" runat="server" Text='<%# DisplayInRadGrid(Convert.ToString(Eval("LastUpdatedName")))%>'></asp:Label></ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                        </tr>
                    </table>
                    <asp:HiddenField ID="hdnDefSearch" runat="server" />
                </td>
            </tr>
        </table>
        </form>
    </body>
    </html>

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 20 Dec 2010 Link to this post

    Hello Rahul,

    Could you please try setting the Skin property of the RadAjaxLoadingPanel and let me know if the issue still persists:
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista"/>

    Give it a try and see if it helps.

    All the best,
    Pavlina
    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.
  3. Rahul
    Rahul avatar
    4 posts
    Member since:
    Sep 2010

    Posted 20 Dec 2010 Link to this post

    Great ! thanks it worked. Pls post this code in your demo. It will help lot of people.
Back to Top