Hi There,
How can I bind field value to the data in my business object, and do it in code-behind?
Cheers
Jonathan
Yea, we are using UnboundField, but the filtering and grouping performance is horrendous with UnboundFields, also when using UnboundField you cannot utilize...
It feels like a bug that UnboundFields perform so poorly. Is there a solution for v14.1 or can we raise a bug please?
Note once we move to regular fields by hacking our domain model so that there are not binding paths and using the above xamdatagrid settings, performance becomes quite good, however the hacks we put in our domain model are no real solution, we just tried it to see what difference removing the UnboundFields would make.
UnboundField seems to reevaluate the binding everytime we group or sort etc, regardless of us setting the binding mode to OneTime. Performance is so bad.
Hello Robson,
Thank you for your feedback.
I have been looking into your requirement. Yes it is available in version 14.1. You can take a look at the following link from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.2/CLR4.0/html/xamDataPresenter_Add_Unbound_Fields_to_a_DataPresenter_Control.html#_Ref391653270
You just have to change Field to UnboundField and set it`s BindingPath property to new PropertyPath instead of BindingType. I modified the last sample application to show you how you can implement this approach with version 14.1.
Please let me know if you require any further assistance on the matter.
Is this available in v14.1 please?
I have been looking into your requirement. That I can suggest is to handle FieldLayoutInitilized event of XamDataGrid. In the event handler you can create Fields and add them to the Fields collection of XamDataGrid. In order to be able to bind the Child object you can use UseAlternateBinding mode of BindingType property of Field class. By AlternateBinding property you can navigate the direct binding path. Please take a look at the following link from our online documentation:
http://help.infragistics.com/doc/WPF/2015.1/CLR4.0/?page=xamDataPresenter_Add_Unbound_Fields_to_a_DataPresenter_Control.html
http://help.infragistics.com/doc/WPF/2015.1/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v15.1~Infragistics.Windows.DataPresenter.BindingType.html
Where you can find more details about this mode and how can Configuring Unbound Field. I created short sample application based on your scenario to show you how you can implement this approach and achieve the functionality that you are looking for. Please let me know if I am missing something about your scenario and let me know if this sample application does not cover your expectations.
If you require any further assistance, please do not hesitate to ask.
I think the link you posted is the link to this article?
If we have the following class...
class A
{
B Child {get; set;}
}
class B
int Value {get; set;}
in code how can I bind an infragistics Field to the Value field of class B, so the binding path would be Child.Value I think.