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

PanelBar and images

1 Answer 74 Views
Panelbar (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alessio
Top achievements
Rank 2
Alessio asked on 09 Apr 2008, 02:03 PM
Hi to everybody
I'm new to telerik controls and I've just finish download trial version for evalutating.
My first question is simple: I create a Form1, add a imagelist (32x32) with some images, a PanelBar and set ImageList property to my ImageList1.
I create a RadPanelBarGroupElement1 and set the ImageIndex to my image in the ImageList1.
The Image is shown but "cutted" (top and bottom).
I searched for something to resize all my RadPanelBarGroupElement but I was not able to find che property.
I need large images and 16x16 are too small.

Any suggeestion?


Alessio Iodice

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 11 Apr 2008, 01:28 PM
Hello Alessio,

To see the whole images, larger than 16x16, you should set an appropriate Padding value to the RadPanelBarGroupElement's CaptionElement:

foreach (RadPanelBarGroupElement groupElement in radPanelBar1.Items)  
{  
    groupElement.GetCaptionElement().Padding = new Padding(0, 15, 0, 15);  

If you need additional assistance, do not hesitate to contact me.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Alessio
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Share this question
or