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
1925
Unbound field to show value based on datatrigger
posted

Hi

I have a grid and I wanted to show content of a field based on a data trigger which is based on another field of object. Please see attached example; In my unboundfield, I wanted to show the value of ProductNameExtended if quantity is greater than 15 otherwise I want it to show value of description field. Please note I do not want to re-define content template. Let me know if there is an alternate.

Thanks.

ConditionalFields.zip
Parents
  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post and the sample application. I have been looking into your sample and it seems that the reason for its behavior is that you are using the DataItem as Binding and you are trying to access the XML elements as properties of the DataItem, which is actually an XmlElement object, since you are using an XML file as data source for the XamDataGrid. What I can suggest, is adding setting the Binding of the UnboundField to MultiBinding.  I have modified the sample application that you have attached in order to implement this approach.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

Reply Children