Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > Button Click event suppressed by RadTabControl

Not answered Button Click event suppressed by RadTabControl

Feed from this thread
  • Patrick avatar

    Posted on Jan 12, 2012 (permalink)

    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>

    Reply

  • Tony Valenti avatar

    Posted on Jan 16, 2012 (permalink)

    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). 

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Jan 17, 2012 (permalink)

    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 >>

    Attached files

    Reply

  • Patrick avatar

    Posted on Jan 17, 2012 (permalink)

    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

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Jan 20, 2012 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TabControl > Button Click event suppressed by RadTabControl
Related resources for "Button Click event suppressed by RadTabControl"

WPF TabControl Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]