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

[Solved] Paging or Scrolling Per Group

7 Answers 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 27 Mar 2008, 03:13 AM
Hello,

I am trying to find a way to do either paging or scrolling on a per-group basis in a grid.  (As opposed to scrolling or paging the entire grid.)

Is there a way to do this?

Thanks,
Stephen

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Mar 2008, 08:18 AM
Hello Stephen,

Unfortunately these cannot be achieve for grouping - group rows are part of the main table however you can try hierarchy instead. Here is also an example related to scrolling on child tables.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 27 Mar 2008, 11:11 AM
A hierarchy is exactly what I need.  I have managed to set it up with the examples you have given me.  I do have a problem, though.  The item that I want to "group" by is a non-unique serial number.  As a result, the same numbers appear repeatedly at the uppermost hierarchy.  Their detailed tables work well, there's just a bunch of redundancy, which is why I was looking at grouping before.

I realize that this could be fixed with some proper table relational setup stuff, but I don't have the liberty to change that.

Is there any way to make this scheme work in a simple way?  I am sure it could be done by creating the whole grid programatically, but I am trying to avoid that. I don't have much time.

Thanks for the help,
Stephen
0
Sebastian
Telerik team
answered on 27 Mar 2008, 11:38 AM
Hello Stephen,

Unfortunately I do not think the precise functionality you are after can be achieved with non-unique repeatable values at the same level. Consider modifying the relations and defining merely unique key values in order to attain the presentation you are searching for.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 27 Mar 2008, 08:09 PM
It turns out that I did have another table to reference so I could get the relation that I needed.

I have the hierarchy working well, but now I have a different issue.  I am trying to duplicate the scrolling for child tables that is in the example that Vlad provided.  I understand that it is using an event handler to add set-size div tags to the child tables. 

The div tags are not showing up in the end result, though.  It appears that the RadGrid_ItemCreated event is not getting fired?

I have created the table declaratively, and the data is bound declaratively, as well.


Thanks for your help,
Stephen
0
Stephen
Top achievements
Rank 1
answered on 27 Mar 2008, 10:22 PM
Alright, I figured it out on my own.

I just needed to set up the event firing in the RadGrid tag (OnItemCreated, etc).

I'm obviously new at this, but have a very short deadline to learn a lot of stuff.

Thanks for your help,
Stephen
0
Stephen
Top achievements
Rank 1
answered on 29 Mar 2008, 06:05 AM
The per-child scrolling works pretty well.  However, I am wondering if there is any way to use virtual scrolling for the child tables to dynamically load the table data?

I see an example for doing this for the entire table, but I'm not sure if there is a way to implement this for the child tables, since the child scrolling is done with an inline <div> scrolling mechanism.

Is this possible?

Thanks,
Stephen
0
Sebastian
Telerik team
answered on 31 Mar 2008, 06:52 AM
Hello Stephen,

Unfortunately this is not possible. The virtual scrolling feature is supported for the main table in the grid only, the scrolls from the child tables can be used only for standard navigation as with scrollable div.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Stephen
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Stephen
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or