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

Problem with grouping when applied virtual scroll paging

3 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nidhi
Top achievements
Rank 1
Nidhi asked on 05 Jan 2011, 08:52 AM
I have created a web page in which I placed a rad grid and set the virtual scroll paging property to true,so when I group a grid by a column in which group consumes more than 1 page so instead of showing records list in collapse manner, it shows space of records consumed by that group which should not be happened instead of this it should show records list in the collapse manner and not the space of records consumed by that group. The code for aspx page is as follows:-

<telerik:RadGrid ID="rgFITList" runat="server" AllowSorting="True"

TabIndex="3" EnableTheming="False" ShowGroupPanel="True" OnItemCommand="rgFITList_ItemCommand"

OnSortCommand="rgFITList_SortCommand" OnGroupsChanging="rgFITList_GroupsChanging"

EnableHeaderContextMenu="True" onitemdatabound="rgFITList_ItemDataBound"

GridLines="None" DataSourceID="ODS_FITList"

AllowPaging="true" PageSize="40" AllowCustomPaging="true">

<HeaderContextMenu></HeaderContextMenu>

<MasterTableView AutoGenerateColumns="False" DataKeyNames="FITID"

GroupsDefaultExpanded="False" GroupLoadMode="Client" Name="Master"

DataSourceID="ODS_FITList">

<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="FITID" HeaderText="Task ID" SortExpression="FITID"

UniqueName="FITID">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="DateSubmitted" HeaderText="Submitted" SortExpression="DateSubmitted"

UniqueName="DateSubmitted" DataFormatString="{0:MM/dd/yyyy}">

<ItemStyle Width="10%"></ItemStyle>

<HeaderStyle Width="10%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ProjectName" HeaderText="Project" SortExpression="ProjectName" UniqueName="ProjectName">

<ItemStyle Width="17%"></ItemStyle>

<HeaderStyle Width="17%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FITType" HeaderText="Task Type" SortExpression="FITType"

UniqueName="FITType">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FITTitle" HeaderText="Title" SortExpression="FITTitle"

UniqueName="FITTitle">

<ItemStyle Width="22%" ></ItemStyle>

<HeaderStyle Width="22%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FITDescription" HeaderText="FITDescription"

UniqueName="FITDescription" Visible="false">

<ItemStyle Width="22%" ></ItemStyle>

<HeaderStyle Width="22%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="UserName" HeaderText="Assigned To" SortExpression="UserName"

UniqueName="UserName">

<ItemStyle Width="12%"></ItemStyle>

<HeaderStyle Width="12%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status"

UniqueName="Status">

<ItemStyle Width="10%"></ItemStyle>

<HeaderStyle Width="10%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="DateDue" HeaderText="Due" SortExpression="DateDue"

UniqueName="DateDue" DataFormatString="{0:MM/dd/yyyy}">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="RankID" HeaderText="RankID"

UniqueName="RankID" Visible="false">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="Priority" UniqueName="Priority" Groupable="false">

<ItemTemplate>

<asp:ImageButton ID="imgMoveOrder" runat="server" CommandName="MoveOrder" ImageUrl="Images/MoveUp.gif"

ToolTip="Move Up" />

</ItemTemplate>

<HeaderStyle Width="80px" HorizontalAlign="Center"></HeaderStyle>

<ItemStyle Width="80px" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn UniqueName="TemplateColumn" Groupable="false">

<ItemStyle Width="5%" HorizontalAlign="Center" />

<HeaderStyle Width="5%" />

<ItemTemplate>

<asp:ImageButton ID="btnRadEdit" CommandName="EditFIT" TabIndex="5" ImageUrl="~/Images/Edit.gif"

runat="server" AlternateText="Edit" />

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

<EditFormSettings>

<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>

</EditFormSettings>

</MasterTableView>

<ClientSettings EnablePostBackOnRowClick="True" AllowDragToGroup="True" EnableRowHoverStyle="True">

<Selecting AllowRowSelect="true" />

<Scrolling AllowScroll="True" UseStaticHeaders="True" EnableVirtualScrollPaging="True" SaveScrollPosition="True"/>

</ClientSettings>

<FilterMenu EnableTheming="False" TabIndex="6">

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

</FilterMenu>

</telerik:RadGrid>

In order to make my problem clear, I am attaching the screenshot of the grid when grouping by a column.So please tell me solution for my problem.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 07 Jan 2011, 12:05 PM
Hi Nidhi,

I suggest that you try changing the GroupLoadMode property of the MasterTableView to Server and see if it helps. You can also check if there is some styles added to the grid or parent container.

Additionally, try setting GroupsDefaultExpanded propety to false and let me know about the result.

However, if the issue persists, please open a formal support ticket and send us a runnable sample or a live URL.

Best wishes,
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.
0
Nidhi
Top achievements
Rank 1
answered on 12 Jan 2011, 08:22 AM
Sorry but I have applied all the solution which you suggest but none of them fixed my problem so please suggest some other solution. I can send you only the snapshots for this also I have given you the complete grid code used on aspx and also send you the screenshot of problem.You can review my code and can suggest the solution. Thanks.
0
Pavlina
Telerik team
answered on 13 Jan 2011, 03:46 PM
Hi Nidhi,

Could you please provide a live URL that reproduces the problem so we can investigate it further?

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.
Tags
Grid
Asked by
Nidhi
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Nidhi
Top achievements
Rank 1
Share this question
or