Loading panel does not work in a RadGrid inside a RadDock

2 posts, 0 answers
  1. JR
    JR avatar
    11 posts
    Member since:
    Jul 2012

    Posted 01 Dec 2011 Link to this post

    Hi,

    I'm using a RadAjaxManager to handle postbacks for a RadGrid insde a RadDock.  I specified a default loading panel but it doesn't seem to work.  Loading panel does not display.  

    The RadDock contains a search function that will bind the results to the RadGrid.

    Sample code:

        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rtbSearch">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgDefinitionList" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
    <telerik:RadDockZone ID="RadDockZone1" runat="server" Orientation="Vertical" Style="border: 0px; float: left; margin-right: 1px; margin-bottom:1px; width:100%;">
            <telerik:RadDock ID="rdSearch" runat="server" Width="300px" DockMode="Docked" Title="Fee Definitions" DefaultCommands="ExpandCollapse" EnableAnimation="true" EnableEmbeddedSkins="false" Skin="LWTSkin">
            <ContentTemplate>
            <table>
            <tr>
            <td>
                <asp:RequiredFieldValidator ID="rfvSearch" runat="server" ErrorMessage=""
                ControlToValidate="rtbSearch"
                ValidationGroup="SearchRequired"></asp:RequiredFieldValidator>
                <br />
                <telerik:RadTextBox ID="rtbSearch" runat="server" Width="25em" MaxLength="100"
                    ValidationGroup="SearchRequired"
                    EmptyMessage="Search for a Fee Definition" Skin="WebBlue" />
                <telerik:RadButton ID="rbSearch" runat="server" Text="Search"
                    onclick="rbSearch_Click"
                    ValidationGroup="SearchRequired" />
                 
            </td>
            </tr>
            <tr>
            <td>
            Results:
                <telerik:RadGrid ID="rgDefinitionList" runat="server"
                    AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" CellSpacing="0"
                    GridLines="None" Skin="Windows7"
                    onneeddatasource="rgDefinitionList_NeedDataSource">
                    <MasterTableView AllowPaging="True" AllowSorting="True">
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                            Visible="True">
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                            Visible="True">
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <Columns>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column column"
                                UniqueName="column" DataField="ID" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column1 column"
                                UniqueName="column1" DataField="Description" HeaderText="Description">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column2 column"
                                UniqueName="column2" DataField="Type"
                                HeaderText="Type">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column3 column"
                                UniqueName="column3" DataField="Code"
                                HeaderText="Code">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column4 column"
                                UniqueName="column4" DataField="Source" HeaderText="Source">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn FilterControlAltText="Filter column5 column"
                                UniqueName="column5" DataField="SourceID"
                                HeaderText="SourceID" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn FilterControlAltText="Filter column6 column"
                                Text="Edit" UniqueName="column6">
                            </telerik:GridButtonColumn>
                        </Columns>
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
                    <FilterMenu EnableImageSprites="False">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </FilterMenu>
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                        <WebServiceSettings>
                            <ODataSettings InitialContainerName="">
                            </ODataSettings>
                        </WebServiceSettings>
                    </HeaderContextMenu>
                </telerik:RadGrid>
            </td>
            </tr>
            </table>
            </ContentTemplate>
            </telerik:RadDock>
            </telerik:RadDockZone
        </telerik:RadDockLayout>



    Please help.

    Thanks,
    JR
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 05 Dec 2011 Link to this post

    Hello Jr,

    Note that The RadDock is not a standard control and you can't update only one RadDock separately or inner for it controls. If you want to make an Ajax call you should update the parent RadDockZone. 
    Please give this a try and let me know if the loading panel will appear.


    Greetings,
    Maria Ilieva
    the Telerik team
    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
Back to Top