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

Image for Label

1 Answer 124 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.
Ganeshram
Top achievements
Rank 1
Ganeshram asked on 17 Feb 2008, 08:21 AM
How to add image for a label added in panel bar.I can see command button supports a mage,cannot see image property for label.

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 18 Feb 2008, 08:05 AM
Hello Ganeshram,

Thank you for writing us. There is no built-in way to add an image to a label.

However, you can use the workaround shown below:

ImagePrimitive imgPrimitive = new ImagePrimitive();
this.radLabel4.RootElement.Children[0].Children.Add(imgPrimitive);
this.radLabel4.ImageList = this.imageList1;
imgPrimitive.Image =
this.imageList1.Images[0];

If you have any other questions please write me back.

Best wishes,

Boyko Markov
the Telerik team


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