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
370
xamTreegrid Live sorting with TemplateFields
posted

I have a xamTreeGrid where values in rows can be updated and rows can be added. I have followed the steps in this blogpost https://ko.infragistics.com/community/blogs/b/kiril_matev/posts/optimizing-sorting-update-performance-in-xamdatagrid and it works well except when the values in my TemplateFields change. When these values change I don't get the InitializeRecordDirect event at all. How can I achieve this? The values in the Template fields are not changed by the user but are updated by other parts of the application. 

Parents
No Data
Reply
  • 34810
    Verified Answer
    Offline posted

    Hello Hilma,

    I have been investigating into the behavior you are describing in this case, and if the InitializeRecordDirect event is not firing when your TemplateField’s values changes, I am rather curious as to how your TemplateField is set up, and whether or not the actual underlying value of the TemplateField is changing? Would it be possible for you to please provide the XAML setup of your TemplateField in this case?

    Another thing you might want to try in this case is to use the DataValueChanged event of the XamTreeGrid, which you need to opt into, and can do so on a Field-by-Field basis. You can read further about the DataValueChanged event on the XamTreeGrid here: https://ko.infragistics.com/help/wpf/xamdatapresenter-about-the-datavaluechanged-event.

    Please let me know if you have any other questions or concerns on this matter.

Children