This is a migrated thread and some comments may be shown as answers.

[Solved] RadGrid hanging during sorting/paging

2 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrei
Top achievements
Rank 1
Andrei asked on 28 Feb 2013, 05:38 PM
I am using ajax rag grid 2012Q2
When I press some page number or on the header to sort the UpdateProgress is moving constantly and following string appears above the grid:
26896|updatePanel|ctl00_ctl00_MainContent_MainContent2_ctl00_ctl00_MainContent_MainContent2_RadGrid1Panel|
I should say that after I press one of mentioned buttons the grid does what it supposed to do - goes to second page or applies sorting, but then whatever I press (except export buttons) it is not responding.
Here is the code of my grid. Take into account that I tried bith way of data binding : simple and advance(NeedDataSource) and that didn't influence my case
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" CellSpacing="0" GridLines="None" Font-Size="Smaller" AllowSorting="True" AutoGenerateColumns="False" OnPreRender="RadGrid1_PreRender" DataSourceID="edsEnrollment" EnableViewState="False" >
                <ExportSettings HideStructureColumns="true" IgnorePaging="true" ExportOnlyData="true">
                </ExportSettings>
                <MasterTableView DataKeyNames="ContractPaymentID" CommandItemDisplay="Top" TableLayout="Auto" DataSourceID="edsEnrollment" EnableViewState="False">
 
                    <CommandItemSettings ShowExportToWordButton="true" RefreshText="განახლება" ShowAddNewRecordButton="false" ShowExportToExcelButton="true"
                        ShowExportToCsvButton="true"></CommandItemSettings>
 
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" PageSizeLabelText="გვერდის ზომა:"></PagerStyle>
 
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="ContractNumber" FilterControlWidth="30px" FilterControlAltText="Filter ContractNumber column" HeaderText="ხელშ №" SortExpression="ContractNumber" UniqueName="ContractNumber" DataType="System.DateTime" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ClientName" FilterControlAltText="Filter ClientName column" HeaderText="კლიენტი" ReadOnly="True" SortExpression="ClientName" UniqueName="ClientName" DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="True" FilterControlWidth="70px">
                        </telerik:GridBoundColumn>
                        <telerik:GridNumericColumn DataField="Year" DataType="System.Int32" FilterControlAltText="Filter Year column" HeaderText="დარიცხვის წელი" ReadOnly="True" SortExpression="Year" UniqueName="Year" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="70px">
                        </telerik:GridNumericColumn>
                        <telerik:GridNumericColumn DataField="Month" DataType="System.Int32" FilterControlAltText="Filter Month column" HeaderText="დარიცხვის თვე" SortExpression="Month" UniqueName="Month" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="30px">
                        </telerik:GridNumericColumn>
                        <telerik:GridNumericColumn DataField="Amount" DataFormatString="{0:####.##}" DataType="System.Decimal" FilterControlAltText="Filter Amount column" HeaderText="თანხა" ReadOnly="True" SortExpression="Amount" UniqueName="Amount" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="40px">
                        </telerik:GridNumericColumn>
                        <telerik:GridNumericColumn DataField="AmountPayed" DataFormatString="{0:####.##}" DataType="System.Decimal" FilterControlAltText="Filter AmountPayed column" HeaderText="გადახდილი" SortExpression="AmountPayed" UniqueName="AmountPayed" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="40px">
                        </telerik:GridNumericColumn>
                        <telerik:GridBoundColumn DataField="PaymentDate" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" FilterControlAltText="Filter PaymentDate column" HeaderText="გადახდის თარიღი" SortExpression="PaymentDate" UniqueName="PaymentDate" CurrentFilterFunction="Between" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="80px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PaymentType" FilterControlAltText="Filter PaymentType column" HeaderText="ფორმა" SortExpression="PaymentType" UniqueName="PaymentType" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="80px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Notes" DataType="System.String" FilterControlAltText="Filter Notes column" HeaderText="შენიშვნები" SortExpression="Notes" UniqueName="Notes" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="50px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PaymentRegisteredOn" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" FilterControlAltText="Filter PaymentRegisteredOn column" HeaderText="თარიღი" SortExpression="PaymentRegisteredOn" UniqueName="PaymentRegisteredOn" CurrentFilterFunction="Between" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="80px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="REgistrator" DataType="System.String" FilterControlAltText="Filter REgistrator column" HeaderText="დაარეგისტრირა" SortExpression="REgistrator" UniqueName="REgistrator" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="True" FilterControlWidth="50px">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
            <asp:EntityDataSource ID="edsEnrollment" runat="server" ConnectionString="name=AuditEntities" DefaultContainerName="AuditEntities" EnableFlattening="False" EntitySetName="vEnrollements">
            </asp:EntityDataSource>

 

2 Answers, 1 is accepted

Sort by
0
Andrei
Top achievements
Rank 1
answered on 03 Mar 2013, 04:54 AM
Anybody has an answer???
0
Eyup
Telerik team
answered on 05 Mar 2013, 01:21 PM
Hi Andrei,

Can you please elaborate on how do you ajaxify the grid? Please note that using RadAjaxPanel simultaneously with RadAjaxManager or UpdatePanel ( or implementing multiple wrapped RadAjaxPanels ) is not a supported scenario and we highly recommend to avoid such implementation. Please either use just the manager to update your controls replacing the RadAjaxPanel with a regular asp:Panel, or use the RadAjaxPanel alone to wrap your page.

Hope this helps.

Kind regards,
Eyup
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.
Tags
Grid
Asked by
Andrei
Top achievements
Rank 1
Answers by
Andrei
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or