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
  • 9694
    posted

    Hello Prakash,

    I apologize that this post was not answered sooner. We are making the effort to ensure all posts are addressed by an Infragistics expert. I was wondering if you still need our assistance in this matter. If so, would you be willing to submit a small sample WPF project? I would update your project with a DataTemplate that fits into the approach you are taking. DataTemplates are very specific to the data used and the XAML does not have enough information for me to effectively address this request.

    Thank you very much!

Reply Children