Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
Expand / Collapse Viewable Records
posted

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. 

Parents
  • 12875
    posted

    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.

Reply Children
No Data