Hello colleagues.
I've got issue. I want bind my Item to RadGridView and bind Type GridViewComboBoxColumn column
I use this xaml:
At grid loading I populate ItemSource of column:
The problem is that at the RowEditEnded event e.NewData.Type is null at inserting and doesn't actual at editing.
What's wrong.
Please help.
I've got issue. I want bind my Item to RadGridView and bind Type GridViewComboBoxColumn column
public class Item: BaseDomain |
{ |
public virtual int Id{ get; set; } |
public virtual string Name{ get; set; } |
public virtual ItemType Type{ get; set; } |
} |
public class ItemType : BaseDomain |
{ |
public virtual int Id{ get; set; } |
public virtual string Name{ get; set; } |
} |
<telerik:GridViewComboBoxColumn Header="Type" UniqueName="Type" |
DataMemberBinding="{Binding Type.Id}" DisplayMemberPath="Name" SelectedValueMemberPath="Id"> |
((GridViewComboBoxColumn)this.grServices.Columns["Type"]).ItemsSource = Repository<ItemType>.GetAll(); grServices.ItemsSource = Repository<Item>.GetAll(); |
What's wrong.
Please help.