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

Where did "ChildRecordManagers" go to ?

10 Answers 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ori Tidhar
Top achievements
Rank 1
Ori Tidhar asked on 03 Sep 2009, 01:56 PM
Hey,

using Q2 2009

I have a grid with relation based on a dataset.

I am trying to iterate over the child rows in the grid.

It seems that the "ExpandableDataRecord" does not have the
"ChildRecordManagers" property.

How I can I find the child rows ?

Thanks.

10 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Sep 2009, 01:34 PM
Hello,

ChildRecordManagers, RecordManager, Records, etc. are part of our old data-engine. In your case you can use your ItemsSource (DataSet) to loop child items directly.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Vlad
Telerik team
answered on 07 Sep 2009, 01:55 PM
Hi,

I've attached small example application to illustrate you how to achieve this.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ori Tidhar
Top achievements
Rank 1
answered on 08 Sep 2009, 11:50 AM

Hello,

Thank you for the sample, however I am using Dataset and setting dataviews to the itemsource of the grid.
Using "RadGridView1.Items" from your sample returns null when using dataview.

I may have found a solution using the code below, however I would be happy to know about other ways to achieve it.

var expnd = rgv.ChildrenOfType<GridViewExpandableRow>().First();
var ChildGrid = expnd.ChildrenOfType<RadGridView>();

ChildGrid.ItemsSource...

Thanks.

0
Vlad
Telerik team
answered on 08 Sep 2009, 03:16 PM
Hi,

I've just tried the application from my previous reply with DataView (RadGridView1.ItemsSource = ds.Customers.DefaultView;) however Items property ispopulated correctly.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ori Tidhar
Top achievements
Rank 1
answered on 09 Sep 2009, 07:35 AM

If you could please refer to:

Using "RadGridView1.Items" from your sample returns null when using dataview.

Thanks.

0
Vlad
Telerik team
answered on 09 Sep 2009, 07:42 AM
Hi Ori,

Indeed I'm referring to the same property (Items). You can try the application attached to this thread.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ori Tidhar
Top achievements
Rank 1
answered on 09 Sep 2009, 07:59 AM

Hi Vlad,

I am using a datatable not a special object, so the sample does not refer to my situation.

In addition, setting the itemsource with defaultview of the datatable does not
cause a change in Items- RadGridView1.Items returns null, so again the sample seems to be irrelevant in my case.

Thanks.

0
Vlad
Telerik team
answered on 09 Sep 2009, 08:23 AM
Hi Ori,

My example is also populated using DataSet and DataTable.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ori Tidhar
Top achievements
Rank 1
answered on 10 Sep 2009, 05:29 AM

You are right- "my bad".

Nethertheless, I think the differences have to do with that fact that you are using in the project sample

dlls from version 2009.2.903.35

and I am using a lower dev version.

 

Relating to your sample, the bind in the sample is done using a DS, which means that changes I do to the dataRows directly

are not visually reflected in the cells.

Is there any way to overcome it ?

I have tried to put the DS in a DataViewManager object and set the itemssource with the DataViewManager object,
however the grid does not show the data.

Thanks.

 

 

0
Vlad
Telerik team
answered on 10 Sep 2009, 06:10 AM
Hi,

You can call Rebind() method of the grid to force refresh.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Ori Tidhar
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ori Tidhar
Top achievements
Rank 1
Share this question
or