'ToolTip' cannot have a logical or visual parent

6 posts, 0 answers
  1. Jacky
    Jacky avatar
    13 posts
    Member since:
    Dec 2015

    Posted 29 Dec 2016 Link to this post

    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?

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1173 posts

    Posted 30 Dec 2016 Link to this post

    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.
  3. Jacky
    Jacky avatar
    13 posts
    Member since:
    Dec 2015

    Posted 02 Jan in reply to Ivan Ivanov Link to this post

    Hi Ivan,

    I use telerik version 2015.3.1104.45.

    Thanks

  4. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1173 posts

    Posted 03 Jan Link to this post

    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.
  5. Jacky
    Jacky avatar
    13 posts
    Member since:
    Dec 2015

    Posted 05 Jan Link to this post

    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.

  6. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1173 posts

    Posted 10 Jan Link to this post

    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.
Back to Top