Show Advanced Edit Form from CodeBehind

2 posts, 0 answers
  1. rugydp
    rugydp avatar
    20 posts
    Member since:
    Jul 2014

    Posted 13 Feb 2017 Link to this post


    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)



    Where would I call "ShowAdvancedEditForm()" correctly?

  2. Peter Milchev
    Peter Milchev avatar
    688 posts

    Posted 16 Feb 2017 Link to this post


    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. 

    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.
Back to Top