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

'ToolTip' cannot have a logical or visual parent

5 Answers 377 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Quang Khải
Top achievements
Rank 1
Quang Khải asked on 29 Dec 2016, 07:30 AM

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?

5 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 30 Dec 2016, 09:38 AM
Hi,

Can you please confirm what version of Telerik UI for WPF you are currently using, as we targetted some fixes for the ToolTip logic with Q1 2016 and R2 2016 releases? 

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Quang Khải
Top achievements
Rank 1
answered on 03 Jan 2017, 01:32 AM

Hi Ivan,

I use telerik version 2015.3.1104.45.

Thanks

0
Ivan Ivanov
Telerik team
answered on 03 Jan 2017, 11:15 AM
Hello,

I reviewed all of the change sets that target GridView's tooltip logic. I did not find any one that absolutely matches the described behavior, but there are several that might be related to this scenario. Would it be possible for you to test the same scenario with the latest version of our controls?

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Quang Khải
Top achievements
Rank 1
answered on 06 Jan 2017, 03:22 AM

With the version R3 2016 Sp1 (testing with WPF Controls Examples application), I couldn't reproduce the issue with the scenario.

In my mentioned code, I use RadCalendar inside DataTemplate, may this cause the problem?

Btw, how can tooltip work? I don't actually understand about tooltip.

0
Ivan Ivanov
Telerik team
answered on 10 Jan 2017, 05:26 PM
Hi,

I did not manage to reproduce the issue on my side. Would it be possible for you to send us a sample project that demonstrates the problem? Then we will be able to pinpoint the source of the issue and discuss its further resolution.

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Quang Khải
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Quang Khải
Top achievements
Rank 1
Share this question
or