Buttons from Overflow Menu don't work

5 posts, 1 answers
  1. Nachiket
    Nachiket avatar
    15 posts
    Member since:
    Jul 2012

    Posted 05 Jun 2013 Link to this post

    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
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 10 Jun 2013 Link to this post

    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.

  3. DevCraft banner
  4. Nachiket
    Nachiket avatar
    15 posts
    Member since:
    Jul 2012

    Posted 10 Jun 2013 Link to this post

    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
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Jun 2013 Link to this post

    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.

  6. Nachiket
    Nachiket avatar
    15 posts
    Member since:
    Jul 2012

    Posted 15 Jul 2013 Link to this post

    Thanks Petar,
    I think the upgrade to new version worked. 
Back to Top
DevCraft banner