Player
{
IsNew, Name, LastName, PlayerNumber
}
I have an ObservableCollection<Player> Players in my ViewModel. My grid is binded to this Players collection
I want to make my column that displays my playernumber enabled depending on my IsNew field
I created a multibinding convertor to pass the value IsNew with some other value on my ViewModel that i need.
I'm having problems passing the IsNew property value to my converter. Binding Path="IsNew" does not work. What do I have to do to pass the entire player object to the converter or just the one field from the player that i need?
<igDP:UnboundField Name="LastName" Label="Last Name" BindingPath="LastName" BindingMode="TwoWay" Width="115" > <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="IsEnabled"> <Setter.Value> <MultiBinding Converter="{StaticResource RosterEdit}"> <Binding Path="IsNew" /> <Binding RelativeSource="{RelativeSource FindAncestor,AncestorType={x:Type core:GlassWindow}}" Path="DataContext.AllowEdit" /> </MultiBinding> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:UnboundField>
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
I have modified the sample Ekaterina sent you, so now it has the functionality you want. Basically I use the XamComboEditor’s ValueToDisplayTextConverter to convert the Value to format you want. When the editor is not in edit mode and this way I didn’t set its Template property, which doesn’t make it to lose its default look.
Hope this helps you.
This worked, it was what i was looking for but when the dropdown is initially loaded you cannot tell it is a drop down until you click on it and then the border draws out and the down arrow showing there are choices to select. Is there a way to force the combobox to always show not only the border but the down arrow so user knows there is a dropdown?
Yay thank you this is exactly what i wanted and needed. Question regarding this though....when the dropdown is first populated you can't see that there is a drop down until you hit on it and then the drop down appears. Is there a way to force show border on it so that it's explicit to the user that they can edit that field?