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
135
BringRecordIntoView performance on setting the DataSource
posted

Hello,

i got a problem with the performance of the XamDataGrid on setting the DataSource. I analysed it with dotTrace and saw, that 99% of the time were spent on BringRecordIntoView after setting the active record.

Is there a way to disable the BringRecordIntoView, or even to enhance the performance in other ways?

I already read Kiril's "Optimizing XamDataGrid Performance" thread. I suppressed the events in the way shown in the example. Also i set the CellContainerGenerationMode and RecordContainerGenerationMode to "LazyLoad".

Tank you, Alex

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Alex,

     

    Thank you for your post. I have been looking into it and I can suggest you set the ActiveRecord like this: 

    xamDataGrid1.Records[50].IsActive = true;
    

    Instead of setting the XamDataGrid’s ActiveRecord Property, because it calls internally the BringRecordIntoView, which you don’t want. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

Children