Hello,
The expand / collapse all function provided under RecordCollectionBase is only available for all Records. Since ViewableRecords is not derived from this class we cannot use those methods. And we just want to expand / collapse all records that are viewable. What is the workaround for this? Right now, we traverse all records and set IsExpanded but this method is definitely slower than built in functions.
Hi Marut,
I was wondering if you had any questions.
Please let me know if you need futher help with this question.
Hi Murat,
Looks like Alex answered your question in this forum post.
http://es.infragistics.com/community/forums/p/24975/91736.aspx
He recommends that you rebind the records instead of trying to loop thru the viewable records, setting IsExpanded and he provides an explanation.
Having determined whether the records should be expanded you would add code to the InitializeRecord event to expand/collapse the records. Because of virtualization, only the viewable records would be expanded.
Please let me know if you have any questions.