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

[Solved] 2009 Q2 backward compatibility issue - iterate all records

3 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Greg
Top achievements
Rank 1
Greg asked on 13 Jul 2009, 07:54 AM
Hi,

I upgraded my project to 2009 Q2 and Silverlight 3 RTM, also apply last public development build to fix some SL3 issues.
Following code stop working because ChildRecordManagers is misssing;

        private void IterateRows(IList<Record> records, bool expand)
        {
            foreach (Record record in records)
            {
                if (record is ExpandableDataRecord)
                {
                    ExpandableDataRecord expandableRecord = (ExpandableDataRecord)record;
                    expandableRecord.IsExpanded = expand ? true : false;

                    for (int childIndex=0; childIndex < expandableRecord.ChildRecordManagers.Count; childIndex ++)
                    {
                        IterateRows(expandableRecord.ChildRecordManagers[childIndex].Records, expand);
                    }                 
                }
            }
        }

Could you give me a hint what is the 2009 Q2 equivalent of the function above?

Greg

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 13 Jul 2009, 12:02 PM
Hello Greg,

I've attached small example project to demonstrate you how to achieve this with latest RadGridView.

Let me know how it goes.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Greg
Top achievements
Rank 1
answered on 13 Jul 2009, 12:42 PM
Hi,

Thanks for the code sample!

Is there way how to achieve what I want without rebinding .. I just want to find the replacement of the line:

expandableRecord.ChildRecordManagers[childIndex].Records

Greg
0
Vlad
Telerik team
answered on 13 Jul 2009, 12:53 PM
Hi Greg,

Currently there is no such replacement - next Q we will remove Records completely!

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Greg
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Greg
Top achievements
Rank 1
Share this question
or