Hello!
Since I updated to 2010 Q1 my CellEditTemplate stopped working. I get an System.InvalidCastException when leaving the textbox.
My binding properties:
In my application I have an custom designed TextBox to prevent the user to enter invalid values, but the same exception appears for a regular Textbox.
This is extremly annoying that something stopped working when updating to a new and improved (?!) version.
//Anna
Since I updated to 2010 Q1 my CellEditTemplate stopped working. I get an System.InvalidCastException when leaving the textbox.
| <telerikGrid:RadGridView x:Name="ARVolymGridView" AutoGenerateColumns="False" ShowGroupPanel="False" ItemsSource="{Binding ARVolymer, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" > |
| <telerikGrid:RadGridView.Columns> |
| <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Sortiment, UpdateSourceTrigger=PropertyChanged}" Header="Sortiment"/> |
| <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Volym, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="M3f" > |
| <telerikGrid:GridViewDataColumn.CellEditTemplate> |
| <DataTemplate> |
| <TextBox Text="{Binding Volym, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/> |
| </DataTemplate> |
| </telerikGrid:GridViewDataColumn.CellEditTemplate> |
| </telerikGrid:GridViewDataColumn> |
| </telerikGrid:RadGridView.Columns> |
| </telerikGrid:RadGridView> |
My binding properties:
| public string Sortiment |
| { |
| get { return _arVolym.Sortiment; } |
| set |
| { |
| if (_arVolym.Sortiment != value) |
| { |
| _arVolym.Sortiment = value; |
| OnPropertyChanged("Sortiment"); |
| } |
| } |
| } |
| public int Volym |
| { |
| get { return _arVolym.Volym; } |
| set |
| { |
| if (_arVolym.Volym != value) |
| { |
| _arVolym.Volym = value; |
| OnPropertyChanged("Volym"); |
| } |
| } |
| } |
In my application I have an custom designed TextBox to prevent the user to enter invalid values, but the same exception appears for a regular Textbox.
This is extremly annoying that something stopped working when updating to a new and improved (?!) version.
//Anna
