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

Image on RibbonBarSplitButton not changing when control is enabled

1 Answer 13 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 02 Oct 2014, 08:56 PM
I have a RibbonBarSplitButton containing three RibbonBarButton items. If I set the SplitButton to enabled and the child Buttons to disabled, the SplitButton uses the disabled image, even though the control itself is enabled.

If I dynamically set the first button to enabled, the SplitButton image is not updated and still shows as disabled. After enabling the child button, I have to disable the SplitButton and then re-enable it for its image to change.

Is this a bug or am I missing something in how the controls are supposed to interact?

I am on Q2 2014 SP1

<telerik:RibbonBarSplitButton ID="testSplit" Text="Split Button" Size="Large" ImageUrlLarge="Enabled.png"
    DisabledImageUrlLarge="Disabled.png" ImageRenderingMode="Dual" Enabled="true" >
    <Buttons>
        <telerik:RibbonBarButton ID="testSub1" Text="Option 1" ImageUrl="MyIcon.png"
            DisabledImageUrl="MyIconDis.png" Enabled="false" Value="alert('Option 1 clicked')" />
        <telerik:RibbonBarButton ID="testSub2" Text="Option 2" ImageUrl="MyIcon.png"
            DisabledImageUrl="MyIconDis.png" Enabled="false" Value="alert('Option 2 clicked')" />
    </Buttons>
</telerik:RibbonBarSplitButton>
.

1 Answer, 1 is accepted

Sort by
0
Derek
Top achievements
Rank 1
answered on 06 Oct 2014, 06:59 PM
If anyone else is having this issue, I found a workaround: add a dummy button as the first item in the <Buttons> collection and set the Visible property to false. 
Tags
RibbonBar
Asked by
Derek
Top achievements
Rank 1
Answers by
Derek
Top achievements
Rank 1
Share this question
or