Hi There,
How can I bind field value to the data in my business object, and do it in code-behind?
Cheers
Jonathan
Hello,
I am just checking if you require any further assistance on the matter.
Hello Robson,
Thank you for your feedback.
I have been looking into your issue and after contacting with our development team, what I can suggest is to try to set the BindingRetaintionMode property of UnboundField to Retain, so you will be able to reuse the unbound`s field value and won`t be a need to re-creating the binding object. For more details about BindingRetaintionMode property you can take a look at the following links from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/InfragisticsWPF4.DataPresenter.v14.1~Infragistics.Windows.DataPresenter.UnboundField~BindingRetentionMode.html
http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/InfragisticsWPF4.DataPresenter.v15.1~Infragistics.Windows.DataPresenter.BindingRetentionMode.html
Would you please try this approach and let me know if you require any further assistance on the matter.
Yes. We dont utilize the CollectionView attributes with UnboundFields as they don't work. I would be interested in why the UnboundField performance is so shockingly bad though for sorting, grouping and filtering?
I am just checking if there is anything else I can do for you.
Thank you for your post.
I have been looking into it. The behavior that you have described about filtering is expected, when using UnboundFields with FilterEvaluationMode set to UseCollectionView. Since the ICollectionView filters itself and provides a subset of data items to the data presenter, the data presenter discards the filtered out data items’ DataRecord objects. Therefore, selected or activated records toggle their selected or activated state following the removal of the filtering criteria when the data grid refreshes. You can only perform filtering on bound data fields.
Please take a look at the following link from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/xamDataGrid_External_Filtering.html
where you can find more details about External Filtering in XamDataGrid. Also what I can suggest is to take a look at the following blog post, it can be of help to you to improve the performance:
http://ko.infragistics.com/community/blogs/damyan_petev/archive/2012/05/07/external-sorting-grouping-filtering-aggregation-with-the-wpf-xamdatagrid.aspx
Please let me know if you need any further assistance on the matter.