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

RadGalleryElement Layout Error

3 Answers 30 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Adrian Bennett
Top achievements
Rank 1
Adrian Bennett asked on 14 May 2009, 02:06 AM
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

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 May 2009, 07:09 AM
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.
0
Adrian Bennett
Top achievements
Rank 1
answered on 14 May 2009, 07:41 AM
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

0
Peter
Telerik team
answered on 14 May 2009, 09:35 AM
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.
Tags
RibbonBar
Asked by
Adrian Bennett
Top achievements
Rank 1
Answers by
Peter
Telerik team
Adrian Bennett
Top achievements
Rank 1
Share this question
or