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
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.
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.
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.
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.
If you could please refer to:
Using "RadGridView1.Items" from your sample returns null when using dataview.
Thanks.
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.
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.
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.
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.
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.