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

Show Advanced Edit Form from CodeBehind

1 Answer 144 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
rugydp
Top achievements
Rank 1
rugydp asked on 13 Feb 2017, 11:58 AM

Hello

I have a fairly complex RadScheduler where a user can drop appointments from a RadGrid and the advanced edit form should open on row drop.

This works so far, the form opens. But it seems the form doesn't get initialised correctly. When submitting the form I get a long error message:

"Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"

 

When double-clicking the appointment in RadScheduler, submitting works just fine with the same advanced form, though.

I call this from Page_PreRender(object sender, EventArgs e)

RadSchedulerPlanning.ShowAdvancedEditForm(appointment);

 

Where would I call "ShowAdvancedEditForm()" correctly?

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 16 Feb 2017, 11:13 AM
Hello,

It is recommended to call the ShowAdvancedEditForm() method after the DataBound event of the Scheduler. 

Regarding the desired functionality, we would suggest you to try handling the row drop on the Client-side, and call the AdvancedInsertForm instead of the Edit one. Here is a demo where the dropping is candled client-side: Scheduler - Creating Appointments with Drag-and-drop.

I would also recommend reviewing the RadScheduler client-side object documentation article where the available properties and methods of the RadScheduler object are listed. 

Regards,
Peter Milchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
rugydp
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or