RibbonButton command fires if button is not visible

2 posts, 0 answers
  1. Bill
    Bill avatar
    42 posts
    Member since:
    Feb 2011

    Posted 23 May 2012 Link to this post

    I have a ribbonview with 2 close buttons.
    Only one button is visible at a time using the visible property binding
    The problem is that when I use the KeyTip for the close button (CS for both) the first
    command always fires even if that button is not visible.
    I would think that it should skip over the invisible button and fire the command for the
    second button.
    Is this a bug/missing functionality or expected behaviour?

    <!--  Close SIN (Client Info)  -->                            <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseClientInformationCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close_SIN],                                                     FallbackValue='Close',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_Client_Info_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotGeneralInquiry,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />                       <!--  Close General Inquiry  -->                      <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseGeneralInquiryCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close],                                                     FallbackValue='Close SIN',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_General_Inquiry_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotClientInformation,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 28 May 2012 Link to this post

    Hello Bill,

    Thank you for reporting this KeyTips issue, we can confirm that it is a bug and therefore I logged it in our PITS. I also updated your Telerik account accordingly.

    All the best,
    Tina Stancheva
    the Telerik team

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

Back to Top