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

Virtual Scrolling with Grouping

4 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 Aug 2011, 03:14 PM
I have a grid with virtual scrolling and grouping, but when the groups are collapsed not all of the groups are showing.

Is there an example of a grid with virtual scrolling and grouping?

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Aug 2011, 01:49 PM
Hello Michael,

Please examine the project attached in the forum thread below and let me know if it helps to resolve the problem:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-virtual-paging-with-grouping.aspx

Kind regards,
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
Maria Ilieva
Telerik team
answered on 04 Aug 2011, 02:51 PM
Hello Michael,

I tried to replicate the described behaviour on my side but to no avail. Please find attached a sample runnable application which works correctly on my side and shows all the groups after groping. Test the application on your side and let me know if it works correctly and what the difference in your case is.

Regards,
Maria Ilieva
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
Michael
Top achievements
Rank 1
answered on 09 Aug 2011, 05:04 PM

If you add 'UnitsOnOrder' field to the query and group by UnitsOnOrder you will see the issue I am having.
Here is the changed code.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="DefaultCS" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<head id="Head1" runat="server">
    <title></title>
</head>
<body class="BODY">
    <form id="mainForm" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadGrid runat="server" ID="RadGrid1" Width="600px" AllowPaging="True" CellSpacing="0"
        DataSourceID="SqlDataSource1" GridLines="None" ShowGroupPanel="True">
        <PagerStyle Visible="false" />
        <ClientSettings AllowDragToGroup="True">
            <Scrolling AllowScroll="true" EnableVirtualScrollPaging="true" />
        </ClientSettings>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="ProductID" DataSourceID="SqlDataSource1" GroupsDefaultExpanded="false">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32" FilterControlAltText="Filter ProductID column"
                    HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProductName" FilterControlAltText="Filter ProductName column"
                    HeaderText="ProductName" SortExpression="ProductName" UniqueName="ProductName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" FilterControlAltText="Filter UnitPrice column"
                    HeaderText="UnitPrice" SortExpression="UnitPrice" UniqueName="UnitPrice">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"
                    FilterControlAltText="Filter CategoryID column" HeaderText="CategoryID"
                    SortExpression="CategoryID" UniqueName="CategoryID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitsOnOrder" DataType="System.Int16"
                    FilterControlAltText="Filter UnitsOnOrder column" HeaderText="UnitsOnOrder"
                    SortExpression="UnitsOnOrder" UniqueName="UnitsOnOrder">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
         
        SelectCommand="SELECT [ProductID], [ProductName], [UnitPrice], [CategoryID], [UnitsOnOrder] FROM [Products]">
    </asp:SqlDataSource>
    </form>
</body>
</html>
0
Maria Ilieva
Telerik team
answered on 12 Aug 2011, 03:28 PM
Hello Michael,

The example I have provided contains 9 items in Employee table so it was easy to trace the rendered items. Could you please let me know how exactly you have traced this big amount of items in Products and how many items are expected to show.

Greetings,
Maria Ilieva
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
Michael
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Maria Ilieva
Telerik team
Michael
Top achievements
Rank 1
Share this question
or