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
3160
Multibinding question
posted

I am trying to implement a multibinding as shown here: http://beta.infragistics.com/community/forums/p/68565/347433.aspx

My converter crashes because it is not being passed a value.    What am I doing wrong?

Using version 12.1.   The name of the property being bound is spelled correctly :)

 

<

igDP:XamDataGrid x:Name="Grid1" DataSource="{Binding Accounts

}">

<igDP:XamDataGrid.FieldLayouts

>

<igDP:FieldLayout

>

<igDP:FieldLayout.Fields

>

<igDP:Field Name="AccountName" Label

="Acct Name"/>

<igDP:UnboundField Name="AccountBalance" Label="Acct Balance" BindingPath="AccountBalance" BindingMode

="TwoWay" >

<igDP:Field.Settings

>

<igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor

}">

<igDP:FieldSettings.EditorStyle

>

<Style TargetType="{x:Type igEditors:XamTextEditor

}">

<Setter Property

="Text">

<Setter.Value

>

<MultiBinding Converter="{StaticResource HeatMap

}">

<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type igDP:DataRecordPresenter}}" Path

="Record.DataItem.AccountBalance" />

MultiBinding

>

Setter.Value

>

Setter

>

Style

>

igDP:FieldSettings.EditorStyle

>

igDP:FieldSettings

>

igDP:Field.Settings

>

igDP:UnboundField

>

igDP:FieldLayout.Fields

>

igDP:FieldLayout

>

igDP:XamDataGrid.FieldLayouts

>

igDP:XamDataGrid

>

 

 

 

Parents
No Data
Reply
  • 3160
    Verified Answer
    posted

    Why do I have to guess to figure out problems like this.  I spent about three hours of trial and error just guessing to try and find a solution.  What a waste of time.  Why do you post code on this site that does not work.  Its very frustrating.

    <

    igDP:UnboundField Name="AccountBalance" Label="Acct Balance" BindingPath="AccountBalance" BindingMode

    ="TwoWay" >

    <igDP:Field.Settings

    >

    <igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor

    }">

    <igDP:FieldSettings.EditorStyle

    >

    <Style TargetType="{x:Type igEditors:XamTextEditor

    }">

    <Setter Property

    ="Background">

    <Setter.Value

    >

    <MultiBinding Converter="{StaticResource HeatMap

    }">

    <Binding Path

    ="DataItem.AccountBalance" />

    <Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}" Path

    ="MinAccountBalance" />

    <Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}" Path

    ="MaxAccountBalance" />

    </MultiBinding

    >

    </Setter.Value

    >

    </Setter

    >

    </Style

    >

    </igDP:FieldSettings.EditorStyle

    >

    </igDP:FieldSettings

    >

    </igDP:Field.Settings

    >

    </igDP:UnboundField

    >

Children
No Data