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

HostedControl of a radlabel

2 Answers 126 Views
Label
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 21 Aug 2008, 09:10 PM
How do I change (in VB.Net) the properties of the hosted control a radlabel?

What I'm trying to do is set the UseMnemonic property to false.

Ryan

2 Answers, 1 is accepted

Sort by
0
Accepted
Angel
Telerik team
answered on 22 Aug 2008, 11:52 AM
Hello Ryan,

It seems that the UseMnemonic property was not linked to the text primitive inside the label.
Thank you for notifying us, your points have been updated.

The issue is now addressed and the fix will be available in the upcoming Service Pack (due next week).
If you do not wish to upgrade to the latest version, you have to set UseMnemonic both to the control and to the text primitive inside the control. The last can be done both in design-time and with code:

Design-time:
Choose "Edit UI elements" from the action list;
In the dialog that pops up select the TextPrimitive and set its UseMnemonic property. See the attached picture for more information.

Code:
TextPrimitive text = (TextPrimitive)this.radLabel1.LabelElement.Children[2].Children[1];  
text.UseMnemonic = false

Don't hesitate to contact us if you have other questions.

Kind regards,
Angel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ryan
Top achievements
Rank 1
answered on 22 Aug 2008, 03:20 PM
Thank you for this answer.

For others who deal with same issue, note that the textprimitive is found here:

Telerik.WinControls.Primitives.TextPrimitive

Tags
Label
Asked by
Ryan
Top achievements
Rank 1
Answers by
Angel
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or