Floating RadPane after click on the button in custom RadPane header!!!

2 posts, 0 answers
  1. Tomas
    Tomas avatar
    21 posts
    Member since:
    Sep 2010

    Posted 04 Jan 2012 Link to this post

    Halo, we have a serious problem with RadDocking when we use custom header template.
    If we use in DocumentHost custom template for header of RadPane and there is Button in the RadPane header, after click on this button docking operation is imediatelly started and the RadPane became floating :-(
    There is sample code:
    <Window x:Class="DarDataFormTest.MainWindow"
            xmlns:local="clr-namespace:DarDataFormTest"
            Title="MainWindow" Height="350" Width="525">
     
        <Window.Resources>
     
            <RoutedCommand x:Key="CommitCommand"/>
     
            <RoutedCommand x:Key="CancelCommand"/>
     
            <local:Converter x:Key="conv"/>
        </Window.Resources>
     
        <Grid>
            <telerik:RadDocking x:Name="radDocking1"  BorderThickness="0"  Padding="0">
     
                <!--DocumentHost-->
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup>
                             
                            <telerik:RadDocumentPane Title="Description">
                                <telerik:RadDocumentPane.HeaderTemplate>
                                    <DataTemplate>
                                        <StackPanel  Orientation="Horizontal">
                                            <TextBlock Text="aaaa" />
                                            <Button Margin="2">Butt</Button>
                                        </StackPanel>
                                    </DataTemplate>
                                </telerik:RadDocumentPane.HeaderTemplate>
                                <telerik:RadDocumentPane.Content>
                                    <TextBlock TextWrapping="Wrap"
                                               Text="test text" />
                                </telerik:RadDocumentPane.Content>
                            </telerik:RadDocumentPane>
                             
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>
     
            </telerik:RadDocking>
     
        </Grid>
    </Window>

    After we click on the button "Butt", RadPane is folowing mouse cursor until first click. Please help....
    Thank you.

  2. George
    Admin
    George avatar
    1332 posts

    Posted 10 Jan 2012 Link to this post

    Hi Tomas,

    Thank you for reporting us this issue with the RadDocking control. We can confirm that the problem is on our side and we will fix it in our incoming internal builds. You can track and vote for the bug here - http://www.telerik.com/support/pits.aspx#/public/wpf/9260. I am glad to update your telerik points.


    All the best,
    George
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top