Button Click event suppressed by RadTabControl

5 posts, 0 answers
  1. Patrick
    Patrick avatar
    4 posts
    Member since:
    Jan 2012

    Posted 12 Jan 2012 Link to this post

    Hi

       If I click the close button in my TabItem it closes the first time the tab is opened, from then on to close any open tabs I must click the close button twice, has anyone seen this and is there a workaround?

    Thank you,
    Patrick

    <telerik:RadTabControl ItemsSource="{Binding Path=ActiveControllers}">
        <telerik:RadTabControl.ItemTemplate>
            <DataTemplate>     
                <telerik:RadButton ToolTip="Close" Click="OnClose">
                    <Image Width="12" Height="12" Source="/O;component/I/Delete.png"/>     
                </telerik:RadButton>
            </DataTemplate>
        </telerik:RadTabControl.ItemTemplate>   
    </telerik:RadTabControl>
  2. Tony Valenti
    Tony Valenti avatar
    6 posts
    Member since:
    Oct 2012

    Posted 16 Jan 2012 Link to this post

    I had a similar issue.

    When the TabContainer has "AllowTabReorder" set, whenever you click on a button, if you move the mouse even the smallest bit, it will not be interpreted as a click (I didn't investigate this further, but I think it most likely gets interpreted as a drag). 
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Jan 2012 Link to this post

    Hello Patrick and Tony,

     Unfortunately, we were unable to reproduce this issue using the code from Tony. Could you please have a look at our test project and let us know if we have missed something ? Thank you in advance.

    Kind regards,
    Petar Mladenov
    the Telerik team

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

  5. Patrick
    Patrick avatar
    4 posts
    Member since:
    Jan 2012

    Posted 17 Jan 2012 Link to this post

    Hello

        In playing with your project and thereafter mine I leaned that there is one more important detail, elsewhere on the screen I have a RadButton with IsDefault set to true, if I remove that setting ( which I would not like to do in production ) the close button works as expected, once a button is added to your project with IsDefault = true your project behaves as mine does.

    Thank you,
    Patrick
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 20 Jan 2012 Link to this post

    Hi Patrick,

     We managed to reproduce this issue in the RadTabControl and since it does not exist in the System.Windows.Control.TabControl, we logged it as a bug in our PITS. We also updated your telerik account points as a thanks for your cooperation. However, we cannot provide an estimated time-frame when this will be resolved. 

    All the best,
    Petar Mladenov
    the Telerik team

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

Back to Top
UI for WPF is Visual Studio 2017 Ready