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
655
How to apply DataTemplate for CombBoxDataItem?
posted

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi all,

Can any one help me in applying datatemplate to a comboboxdataitem when i am using XamComboEditor specific to field in a XamDataGrid and use a ListView in the datatmplate to populate the data in the ComboEditor?

For Example:

<igDP:Field Name="Column1" Label="Column1" Row="0" Column

="0">

 

 

 

 

<igDP:Field.Settings>

 

 

 

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

}" >

 

 

 

 

<igDP:FieldSettings.EditorStyle

>

 

 

 

 

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

}">

 

 

 

 

<Setter Property="ItemsProvider" Value="{StaticResource Column1ItemsProvider

}"/>

 

 

 

 

<Setter Property="IsEditable" Value

="True"/>

 

 

 

 

<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self},Path

=Value}"/>

 

 

 

 

</Style

>

 

 

 

 

</igDP:FieldSettings.EditorStyle

>

 

 

 

 

</igDP:FieldSettings

>

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

</igDP:Field

>

 

 

 

 

<igDP:Field Name="column2" Label="column2" Row="0" Column

="1">

 

 

 

 

<igDP:Field.Settings

>

 

 

 

 

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

}" >

 

 

 

 

<igDP:FieldSettings.EditorStyle

>

 

 

 

 

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

}">

 

 

 

 

<Setter Property="ItemsProvider" Value="{StaticResource column2ItemsProvider

}"/>

 

 

 

 

<Setter Property="IsEditable" Value

="True"/>

 

 

 

 

<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self},Path

=Value}"/>

 

 

 

 

</Style

>

 

 

 

 

</igDP:FieldSettings.EditorStyle

>

 

 

 

 

</igDP:FieldSettings

>

 

 

 

 

</igDP:Field.Settings

>

 

 

 

 

</igDP:Field

>

Thanks

Prakash

Parents Reply Children
No Data