RadGallery radio button group behavior

2 posts, 1 answers
  1. Evgeny
    Evgeny avatar
    5 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post


    I have a RadGallery control with a few items in it.

    I want my items to behave like radio buttons from a single group.
    Currently if I'm selecting one item and then another, the other one gets unselected, which I like.
    However, if I'm selecting one item and then clicking on it again, it gets unselected,  similar to checkbox behavior, which I don't like.

    In all of your examples, including ones from previous versions, a click on an item that has already been selected, gets ignored, which is the behavior that I want, for example:

    <telerik:RadGallery ViewportWidth="157" ViewportHeight="184" ItemWidth="156"
        <telerik:RadGalleryItem Image="{Binding Underline1}"
                ToolTipService.ToolTip="Underline" />
        <telerik:RadGalleryItem Image="{Binding Underline2}"
                ToolTipService.ToolTip="Double underline" />
        <telerik:RadGalleryItem Image="{Binding Underline3}"
                ToolTipService.ToolTip="Thick underline" />
        <telerik:RadGalleryItem Image="{Binding Underline4}"
                ToolTipService.ToolTip="Dotted underline" />
        <telerik:RadGalleryItem Image="{Binding Underline5}"
                ToolTipService.ToolTip="Dashed underline" />
        <telerik:RadGalleryItem Image="{Binding Underline6}"
                ToolTipService.ToolTip="Dot-dash underline" />
        <telerik:RadGalleryItem Image="{Binding Underline7}"
                ToolTipService.ToolTip="Dot-dot-dash underline" />
        <telerik:RadGalleryItem Image="{Binding Underline8}"
                ToolTipService.ToolTip="Wave underline" />

    The difference between your code and mine is that you're populating your gallery with RadGalleryItems and I'm populating it using ItemsSource and ItemTemplate, My ItemTemplate is similar to this:
            <Image Source="{Binding Image}" />
            <TextBlock Text ="{Binding Text}" />

    Also this doesn't have the desired behavior:
    <telerik:RadGallery ViewportWidth="157" ViewportHeight="184" ItemWidth="156"
        <TextBlock Text="16253765" />
        <TextBlock Text="16253765" />
        <TextBlock Text="16253765" />
        <TextBlock Text="16253765" />
        <TextBlock Text="16253765" />
    It seems that it only works with items that are inside RadGalleryItem, but I thought that it should happen implicitly.

    Hope that someone can help.

  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 15 Apr 2011 Link to this post

    Hello Evgeny,

    This is a bug in the RadRibbonBar indeed. We logged it in our PITS(RibbonBar: When Gallery is bound or filled with non-RadgalleryItems, clicking on a selected item deselects it which is wrong) where you will be soon able to vote for. Thank you for your cooperation. We also updated your telerik account points. 

    Petar Mladenov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top