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

Adding simple label to Advanced form

3 Answers 74 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sander
Top achievements
Rank 1
Sander asked on 19 Aug 2011, 10:43 AM
Hi there,

I have a question, do someone know if it's possible to add a simple label to the advanced form without using a custom template or something like that?I want to add the label via my C# code.

Thanks,

3 Answers, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 22 Aug 2011, 03:26 PM
Hello Sander,

You can find instructions of how to access the controls in the advanced form here.

One solution is to attach a handler on the OnFormCreated event and check if the Scheduler is in insert or edit mode. If that is so, find some control (depending on where you want to put the label) from the form, find its parent and add your label as a child of the parent control. 

Example: subjectTextbox.Parent.Controls.Add(testLabel);
*subjectTextbox - control from the advanced form.
*testLabel - label I want to put in the form.

Best wishes,
Ivana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Ron
Top achievements
Rank 1
answered on 11 Jan 2013, 01:58 PM
Do you have any examples on how to do this?
0
Plamen
Telerik team
answered on 14 Jan 2013, 12:35 PM
Hi John,

 
You can refer to the Handling FormCreated help topic where is provided the exact coed use to add a control in the Add a new combobox that updates the subject field section.

Please let me know if you have further questions concerning this issue.

Greetings,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Sander
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Ron
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or