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

Outlook-style grouping, with on-demand loading...

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Heriberto
Top achievements
Rank 1
Heriberto asked on 22 Mar 2012, 09:19 PM
My apologies in advance.

I know this question has been asked millions of times. I've seen them all over the place in the forums. 

However, I'm not really sure that, all those times, the right question was actually asked. So, please, let me try for the 1000001 time:

I have this table with customer info of all kinds, which when fully expanded, takes tens of thousands of records. I would like to show this table to the users of my application using a RadGrid. Of course, I don't want to shove the full contents of this table at once to my users' throats; I would like the data to show gradually, as the users scroll in the table, in chunks of 100 by 100 (preferably).

Using many, many techniques, the RadGrid can do this just fine.

Now, I would also like to enable this cool functionality of the RadGrid that, when a user drags a column cell to the top of the grid, the grid automatically groups the data and displays it hierarchically, much like a tree view, with one, two, or many columns if needed.

So, you see, basically I would like (as the title said) Outlook-style grouping, *and at the same time*, on-demand loading of data into the grid, to make my users' life easier. 

Is this feasible, at all, with the current version of the RadGrid? What is the right combination of techniques that will let me do this thing I just described? Name them however you want, I don't care. Just, please, tell me what can I do to implement such a scenario.

Any comments will be highly appreciated!

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 28 Mar 2012, 10:37 AM
Hello Heriberto,

To represents Outlook-style grouping implemented with Telerik RadGrid you have to:

        Use the set of properties, which control group-by behavior and appearance (like RadGrid.ShowGroupHeader)

        Control the style of GroupHeaderItem, which visually divides the rows by groups 
        Set the style of GroupPanel and its Items, which display the currently grouped fields and can change the sorting-order of the grouped columns

Note that grouping is not supported with simple data-binding (calling DataBind()).
For more information please refer to the following live demo.



Regards,
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.
Tags
Grid
Asked by
Heriberto
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or