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

[Solved] Template error: Associated control not found

1 Answer 138 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
R
Top achievements
Rank 1
R asked on 15 Dec 2009, 02:41 PM
Dear experts.
I need to expand the insert and edit template of the Scheduler and wanted to test the tutorial given by this page: http://www.telerik.com/help/aspnet-ajax/schedule_appearancetemplates.html

Altough I followed the example point by point, when I run it and try to go into the "Advanced" insert or edit mode I get the error: 
Cannot find the control with ID TitleTextBox which is associated with Label Label1.

I noticed that the asked for TextBox was situaed in the InlineInsertTemplate and the InlineEditTemplate, but I am not sure if this has got anything to do with the solution.

Please advise me on what I have done wrong.

One last request:
How can I copy the current default edit/insert template in order to integrate look and functionality (of e.g. reccurence) in a custom advanced edit/insert template?

Looking forward to your replies.

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 18 Dec 2009, 11:25 AM
Hello R,

There seems to be an error with the code sample for the advanced form. Please, try the following modification:
<asp:Label AssociatedControlID="SubjectTextBox" runat="server" CssClass="inline-label">Description</asp:Label>
              <asp:TextBox ID="SubjectTextBox" Rows="5" Columns="20" runat="server" Text='<%# Bind("Subject") %>' Width="95%" TextMode="MultiLine"></asp:TextBox>

Regarding the second question, as you have already discovered in another forum thread, the following are the resources to use for customizing the advanced form: 

http://www.telerik.com/help/aspnet-ajax/schedule_advancedformtemplate.html

http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx


Greetings,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
R
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or