RadGalleryElement Layout Error

4 posts, 0 answers
  1. Adrian Bennett
    Adrian Bennett avatar
    5 posts
    Member since:
    Mar 2009

    Posted 13 May 2009 Link to this post

    Hi,

    I'm using a RadGalleryElement set to display two columns in a group on a ribbon bar, and I've filled it with 10 RadGalleryItem's and each of those items have a 32x32 image and TextImageRelation = ImageBeforeText so the image is next to the text. This results in showing some items and hiding the rest which is what I want.

    When the form loads it looks fine, but when I click on the popup button to show the full list of items in the RadGalleryElement, and then click somewhere else to close the list, a padding of about 30px is added between the picture and the text and the text is cut off.

    I've played with a few of the settings, but I haven't been able to stop this from happening, is there a simple solution? 

    Cheers
    Adrian
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 14 May 2009 Link to this post

    Hi Adrian,

    Thank you for writing.

    We are aware of this issue and it will be fixed in our next release. The whole gallery pop-up will be redesign also.

    For the time being, please use the following code:

    this.radGalleryElement1.DropDownClosed += new EventHandler(radGalleryElement1_DropDownClosed); 
     
    void radGalleryElement1_DropDownClosed(object sender, EventArgs e) 
        foreach (RadElement element in this.radGalleryElement1.Items) 
        { 
             element.Children[2].Children[1].ResetValue(RadElement.BoundsProperty) 
        } 

    Please refer to the attached project too.

    Kind regards,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Adrian Bennett
    Adrian Bennett avatar
    5 posts
    Member since:
    Mar 2009

    Posted 14 May 2009 Link to this post

    Thanks for the help.

    It didn't fix the problem. In the gallerytest.zip you'll notice the text disappears from under the image after the popup. 

    I’ve decided to change my approach and I’m now just using images instead of images and text. This method seems more stable but sometimes the images disappear, I don’t know of a consistent way to reproduce this, but I'll just ignore it for now and deal with it latter if it becomes a problem.

    Cheers
    Adrian

  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 14 May 2009 Link to this post

    Hi Adrian,

    I noticed that you are using an older version of RadControls for WinForms - Q1 2009 (2009.1.9.311). Please upgrade to our latest version Q1 2009 SP1 (v.2009.1.9.414) since the issue (text/image disappearing) that you are describing has already been resolved there. If you have additional questions, feel free to contact me.

    Sincerely yours,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top