This is a migrated thread and some comments may be shown as answers.

GridViewComboBoxColumn binding to object

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew Kalashnikov
Top achievements
Rank 1
Andrew Kalashnikov asked on 26 May 2010, 05:30 AM
Hello colleagues.
I've got issue. I want bind my Item to RadGridView and bind Type GridViewComboBoxColumn column
public class Item: BaseDomain 
   public virtual int Id{ getset; } 
   public virtual string Name{ getset; } 
   public virtual ItemType Type{ getset; } 
}  
 
public class ItemType : BaseDomain 
   public virtual int Id{ getset; } 
   public virtual string Name{ getset; } 
}  
  
 I use this xaml:
<telerik:GridViewComboBoxColumn Header="Type" UniqueName="Type"  
DataMemberBinding="{Binding Type.Id}"  DisplayMemberPath="Name" SelectedValueMemberPath="Id"
At grid loading I populate ItemSource of column:
((GridViewComboBoxColumn)this.grServices.Columns["Type"]).ItemsSource = Repository<ItemType>.GetAll();
 grServices.ItemsSource = Repository<Item>.GetAll();
 
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.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 28 May 2010, 03:03 PM
Hello Andrew Kalashnikov,

Please upgrade to the latest internal build . It has a fix that solves a similar issue. In case this does not help , please paste me the whole code of your page , so that I can reproduce the problem here and provide the appropriate solution.

Regards,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Andrew Kalashnikov
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or