Completed
Last Updated: 17 Jun 2014 08:27 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 22 Aug 2013 09:16
Category: CommandBar
Type: Bug Report
0
FIX. RadCommandBar - when the VisibleInStrip property on a CommandBarButton is false you can still click the button
Description:If I set the VisibleInStrip property on a CommandBarButton to false, I can still click on the button.

To reproduce:
1.First Scenario:
-add a RadCommandBar with one CommandBarStripElement;
-add 3 CommandBarButtons separated by CommandBarSeparator;
-add Click event handler to each button;
-set VisibleInStrip=false to the second button of the CommandBarButtons; Try to click the area between the existing two CommandBarSeparators; As a result the Click event is fired for the hidden second button.

2.Second Scenario:
-add a RadCommandBar with one CommandBarStripElement;
-add 3 CommandBarButtons;
-add Click event handler to each button;
-set VisibleInStrip=false to the second button of the CommandBarButtons; In some cases clicking the area over the first button fires the Click event of the hidden button.

Workaround: 
Use commandBarButton1.Visibility = ElementVisibility.Collapsed;
0 comments