I have tried to set up a gridview which includes a date column.
If I have an invalid input for a date column, I get a validation error -> That is OK.
If I THEN use the dropdown to choose a date, the program crashes with the following exception: 'ToolTip' cannot have a logical or visual parent.
My GridViewColumn
<
telerik:GridViewComboBoxColumn
x:Name
=
"InputValueComboBox"
Header
=
"ABC"
ItemsSourceBinding
=
"{Binding Inputs}"
DataMemberBinding
=
"{Binding Input, ValidatesOnDataErrors=True}"
IsComboBoxEditable
=
"True"
SelectedValueMemberPath
=
"Value"
DisplayMemberPath
=
"Value"
SortMemberPath
=
"Value"
Width
=
"Auto"
CellEditTemplateSelector
=
"{StaticResource InputValueEditTemplateSelector}"
/>
My TemplateSelector:
<
DataTemplate
x:Key
=
"DateValueEditTemplate"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBox
Grid.Column
=
"0"
Text
=
"{Binding Input, Mode=TwoWay}"
/>
<
telerik:RadDropDownButton
x:Name
=
"FilterCalendarDropdown"
Grid.Column
=
"1"
AutoOpenDelay
=
"0:0:0.0"
>
<
telerik:RadDropDownButton.DropDownContent
>
<
telerik:RadCalendar
SelectedDate
=
"{Binding DateValue, Mode=TwoWay}"
SelectionChanged
=
"OnSelectionChanged"
/>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
</
Grid
>
</
DataTemplate
>
<
styleSelectors:PropertyValueDataTemplateSelector
x:Key
=
"InputValueEditTemplateSelector"
DateTemplate
=
"{StaticResource DateValueEditTemplate}"
/>
Any idea to solve the problem?