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

[Solved] Error on ajax update to the start and end time on scheduler default form template

3 Answers 61 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jeeten Mistry
Top achievements
Rank 1
Jeeten Mistry asked on 23 Jul 2009, 02:56 PM
Anyone successfully used RadAjaxManagerProxy within a customised SchedulerDefaultForm custom control. I have updated SchedulerDefaultForm to include an asp:dropdown control which is set to AutoPostBack to perform server logic to set appointment start and end time based on predefined settings on the selection changed event. Ideally I would like to perform a callback instead of a postback and therefore attempted to make use of the RadAjaxManagerProxy control, however I get the following error when the callabck responds:-

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Hope someone can help me out.

Jeeten

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 28 Jul 2009, 11:08 AM
Hello Jeeten Mistry,

I suppose you have a javascript methods which use code blocks (e.g. <% ... %>). You need to wrap that code in RadScriptBlock.

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeeten Mistry
Top achievements
Rank 1
answered on 04 Aug 2009, 04:00 PM
Veselin,

Tried this but not made any difference.

Jeeten
0
Veselin Vasilev
Telerik team
answered on 07 Aug 2009, 09:28 AM
Hello Jeeten Mistry,

Please make sure the javascript is not in the <head> section of the page.

Ideally, you can send us a sample project which we can run locally and find the problem.

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Jeeten Mistry
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Jeeten Mistry
Top achievements
Rank 1
Share this question
or