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

Button Click event suppressed by RadTabControl

4 Answers 126 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 12 Jan 2012, 08:28 PM
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>

4 Answers, 1 is accepted

Sort by
0
Tony Valenti
Top achievements
Rank 1
answered on 16 Jan 2012, 05:51 PM
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). 
0
Petar Mladenov
Telerik team
answered on 17 Jan 2012, 01:22 PM
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 >>

0
Patrick
Top achievements
Rank 1
answered on 17 Jan 2012, 07:41 PM
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
0
Petar Mladenov
Telerik team
answered on 20 Jan 2012, 01:47 PM
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 >>

Tags
TabControl
Asked by
Patrick
Top achievements
Rank 1
Answers by
Tony Valenti
Top achievements
Rank 1
Petar Mladenov
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or