Image on RibbonBarSplitButton not changing when control is enabled

2 posts, 0 answers
  1. Derek
    Derek avatar
    2 posts
    Member since:
    Oct 2014

    Posted 02 Oct 2014 Link to this post

    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" >
            <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')" />
  2. Derek
    Derek avatar
    2 posts
    Member since:
    Oct 2014

    Posted 06 Oct 2014 in reply to Derek Link to this post

    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. 
Back to Top