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

Child Rows for a GridViewGroupRowInfo

4 Answers 232 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin Marsh
Top achievements
Rank 1
Kevin Marsh asked on 25 Mar 2008, 09:48 PM
Now that the rows collection includes only data rows, how do I get the child data rows for a GridViewGroupRowInfo?  I'm in the SelectedRow event after a group row was selected by the user.  I need to get information from the data rows that makes up the group.  The rows collection is always empty. This one is BIG.

4 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 26 Mar 2008, 08:49 AM
Hello Kevin,

The Rows collection of the new edition of RadGridView is only content data rows ordered after the sorting and grouping operations. To access group representation of data, you must use the Root or RootGroups properties of the GridViewTemplate.

We introduce a new logical object for group management - DataGroup. You can access and enumerate rows using the GetRows() or GetRowsEnumerator() API, and also view and manipulate chid groups using Groups property.

In the final edition of RadGridView, you can search the DataGroup object using the GridViewRowInfo object.

I hope this was helpful. If you have additional questions please contact us.

All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin Marsh
Top achievements
Rank 1
answered on 26 Mar 2008, 06:02 PM
I'm still not seeing how I can get from the current/selected/clicked group row to the child rows of that group. 

In the CurrentRowChanged event I get a GridViewGroupRowInfo.  In the RootGroups I can see the new DataGroup(s).  Each DataGroup has a GetRows that gives me the child rows.  How can I get from the GridViewGroupRowInfo (clicked row) to the corresponding DataGroup so I can get the child rows?  

I think the issue described in another thread (http://www.telerik.com/community/forums/thread/b311D-bcmcgk.aspx) is the same as the one I'm describing.  If the answer is Telerik did not provide any way to get from a Group Row to the group's child rows in the Beta version, we need to figure out how to get a drop that addresses this major oversight.

Thanks in advance.

Kevin
0
Julian Benkov
Telerik team
answered on 28 Mar 2008, 09:06 AM
Hello Kevin,

For GridViewGroupRowInfo, we have added a public Group property, which gets the owner DataGroup object. When you get the first row or any child row from this DataGroup, you can get the index using the GridViewRowCollection.IndexOf method.

Also we have introduced a new FindDataGroup(GridViewRowInfo rowInfo) method for searching a DataGroup for a GridViewRowInfo object.

Please refer to your last support ticket.

Contact me again if you need any further assistance.

Sincerely yours,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin Marsh
Top achievements
Rank 1
answered on 28 Mar 2008, 02:47 PM
Thank you.  I look forward to seeing these implemented.
Tags
GridView
Asked by
Kevin Marsh
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Kevin Marsh
Top achievements
Rank 1
Share this question
or