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

Buttons from Overflow Menu don't work

4 Answers 75 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Nachiket
Top achievements
Rank 1
Nachiket asked on 05 Jun 2013, 04:31 PM
Hi ,
I have about 12-15 buttons in the RadToolBar and when the available display size is low the buttons move to the Overflow Menu, it looks nice. But unfortunately my buttons in the overflow menu wont work. They don't fire the command attached to them. However the buttons which are visible on the Toolbar work fine. Interestingly enough the Click event handler gets fired when the buttons are in the Overflow menu. I can not understand why my Command would not get fired ?

This is my code.
"
<telerik:RadToolBar x:Name="quickKeyBar" Grid.Row="0" 
                                     telerik:StyleManager.Theme="Metro"
                                ItemsSource="{Binding Path=UserQuickKeys}"
                                HorizontalAlignment="Stretch" Margin="-1 -2 -1 0">
 
                <telerik:RadToolBar.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <telerik:RadButton Margin="3,0,3,0" Content="{Binding Path=QuickKeyName}"
                                           Command="{Binding Path=EnterQuickKeyCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"     
                                           CommandParameter="{Binding}"
                                           IsEnabled="{Binding Path=IsUserQuickKeyUsable}"                                     
                                           telerik:StyleManager.Theme="Metro" />
                        </Grid>
                    </DataTemplate>
                </telerik:RadToolBar.ItemTemplate>

"


Any help is greatly appreciated. 

Cheers,
Nachiket

4 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 10 Jun 2013, 06:18 AM
Hello Nachiket,

 I tested this scenario with Q1 2013 dlls and Windows 8 Theme as an ApplicationTheme. It seems that everything works as expected - the command always fires successfully. What is your dlls version ? Could you please check out my test project and let us know if we have missed something. Thank you in advance for your cooperation.

Regards,
Petar Mladenov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nachiket
Top achievements
Rank 1
answered on 10 Jun 2013, 04:38 PM
Hey Petar,
Thank you so much for your reply.

We are using "2012.2.0607.1050" version of telerik controls. 
I looked at the code sample you sent, I am seeing 2 differences between the sample and my application. 
1. Telerik Control Versions
2. DelegateCommand: We are using the Prism DelegateCommand and the sample uses Telerik's DelegateCommand.

May be one or both of these reasons show the behavior I observed with Toolbar buttons when clicked from the overflow-menu.

Cheers,
Nachiket
0
Petar Mladenov
Telerik team
answered on 13 Jun 2013, 07:23 AM
Hello Nachiket,

We did not reproduce the issue with Q2 2012 dlls and Prism's Delegate Command. Please check out our test project attached. However, we strongly recommend you to try to upgrade to newer telerik version or to change this DelegateCommand to telerik one's 

Regards,
Petar Mladenov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nachiket
Top achievements
Rank 1
answered on 15 Jul 2013, 03:10 PM
Thanks Petar,
I think the upgrade to new version worked. 
Tags
ToolBar
Asked by
Nachiket
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Nachiket
Top achievements
Rank 1
Share this question
or