<
telerik:RadComboBox
Grid.Column
=
"1"
Grid.Row
=
"5"
Margin
=
"5"
Height
=
"25"
Width
=
"250"
Name
=
"cmbDynamicDim"
HorizontalAlignment
=
"Left"
DisplayMemberPath
=
"Name"
ItemsSource
=
"{Binding DynamicDims}"
SelectedItem
=
"{Binding SelectedField,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
>
I am using twoway binding to dynamically change the color of one of my user controls and to set the initial selected color. It's structured as the following (way simplified):
<
RadGridView
x:Name
=
"T"
ItemsSource
=
"{Binding storage, Mode=OneWay}"
>
<
GridViewColumn
>
<
GridViewColumn.Template
>
<
ColorPicker
SelectedColor
=
"{Binding Color, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
/>
</...>
</...>
</...>
And the associated C# code:
void
func(
object
sender) {
this
.DataContext = sender;
}
I am getting a nullpointer exception when I try to change the DataContext of the GridView IF AND ONLY IF the GridView has elements in it. Is there a way to get around changing the source of a gridview that has twoway bindings?
Best, Jin
<
telerik:RadDateTimePicker
Grid.Column
=
"1"
Grid.Row
=
"4"
DateTimeWatermarkContent
=
"Enter DOB"
HorizontalAlignment
=
"Center"
Margin
=
"0"
Name
=
"radDOB"
VerticalAlignment
=
"Center"
GotFocus
=
"radDOB_GotFocus"
SelectionChanged
=
"radDOB_SelectionChanged"
InputMode
=
"DatePicker"
MinWidth
=
"80"
/>
We have a RadGridView populate with some items. If we scroll to the bottom and delete some items the vertical scrollbar disappear and all the items are moved to the top and at the bottom remain white spaces. I’m using RadControls for WPF Q1 2011 SP1 and we are obligated by the client to use this telerik version so if this was fixed in future releases please provide me a workaround solution.
Best regards,
Cotutiu Lucian.