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

Custom paging and grouping - occurs on the grid level

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kirill
Top achievements
Rank 1
Kirill asked on 12 Dec 2008, 08:50 AM
I'm experiencing following trouble:

I'm using paging on the business logic methods.
And I also would like to apply grouping to the the grid items.
In a grouping header I would like to  display information like this: "Group A - Showing X of Y items"
where X - number of items of Group A on current(!!!) page.
          Y - total number of items in group A.

I saw an expample http://demos.telerik.com/aspnet-ajax/Grid/Examples/Programming/CustomPaging/DefaultCS.aspx
with paging.

But in this example if grouping or filtering activated, grid requires all items from the business object. So basically paging in such scenario happens on the grid level. And its absolutely not appropriate for me.

How can I achieve such functionality "Group A - Showing X of Y items" in grouping keeping paging on the database level and using maximum out of box grouping functionality in Rad Grid?


1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 16 Dec 2008, 09:50 AM
Hi Kirill,

Unfortunately, in this case, in such a scenario, the control will require all the data from the datasource. You cannot pass only subsets of data, and have the default grouping information setup.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Kirill
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or