Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RibbonBar > RadGallerItem extend mode

Answered RadGallerItem extend mode

Feed from this thread
  • Steven avatar

    Posted on Sep 1, 2011 (permalink)

    Greetings - I'm using the RadRibbonGallery in extended selection mode.  When the gallery popup is displayed, and you select an item, the gallery closes.  Is there a way I can prevent this, to allow the user to select multiple items in the gallery popup? 

    I realize this isn't exactly in line with the Office / Ribbon interface guidelines, but it would be nice for a particular situation I'm dealing with.

    Thanks for any help.

    Reply

  • Answer Petar Mladenov Petar Mladenov admin's avatar

    Posted on Sep 6, 2011 (permalink)

    Hi Steven,

    Have you considered using the RadGallery in a RadDropDownButton's DropDownContent. The key thing is that you can set the KeepOpen property of the RadRibbonDropDownButton to true.
    You can do for example like so: 

    <telerik:RadRibbonBar x:Name="ribbon" ApplicationButtonType="Office2010">
                <telerik:RadRibbonTab Header="tab 1">
                    <telerik:RadRibbonGroup Header="Group Alpha">
                        <telerik:RadRibbonDropDownButton Content="Gallery" KeepOpen="True">
                            <telerik:RadRibbonDropDownButton.DropDownContent>
                                <telerik:RadGallery SelectionMode="Extended" >
                                    <telerik:RadGalleryItem>
                                        <Rectangle Width="100" Height="10" Fill="DeepSkyBlue" />
                                    </telerik:RadGalleryItem>
                                    <telerik:RadGalleryItem>
                                        <Rectangle Width="100" Height="10" Fill="Blue" />
                                    </telerik:RadGalleryItem>
                                    <telerik:RadGalleryItem>
                                        <Rectangle Width="100" Height="10" Fill="Orange" />
                                    </telerik:RadGalleryItem>
                                    <telerik:RadGalleryItem>
                                        <Rectangle Width="100" Height="10" Fill="Yellow" />
                                    </telerik:RadGalleryItem>
                                </telerik:RadGallery>
                            </telerik:RadRibbonDropDownButton.DropDownContent>
                        </telerik:RadRibbonDropDownButton>                
                    </telerik:RadRibbonGroup>
                </telerik:RadRibbonTab>
            </telerik:RadRibbonBar>

    All the best,
    Petar Mladenov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Sep 6, 2011 (permalink)

    Hello Steven,

    Excuse me for using RadGallery instead of the RadRibbonGallery in the example, but it should both ways. Just let us know if this fits in your scenario.

    Greetings,
    Petar Mladenov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Steven avatar

    Posted on Sep 6, 2011 (permalink)

    Thanks much, that was exactly what I was looking for!

    Regards,
    Steven

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > RibbonBar > RadGallerItem extend mode