I am using your scheduler component and the user can create different types of events. They are polymorphic events, meaning the main data is stored in an 'event' table and depending on the type of event other data is stored in other tables. Therefore I would like to know how it is possible to send different create action depending on the event type.
The website has been built in steps and the events are being created using different forms. I plan to, have a custom template from which the user can select an event type and then enter the rest of the information. The only bit i am unsure of is posting to different URLs.
Any help will be greatly appreciated
6 Answers, 1 is accepted
This can be achieved by either using function for the "create.url" option or set the parent "create" option to function to make entirely custom requests. Please check the related documentation below:
Many thanks for you reply, it looks as though it is something that will work. However, i need to go back a step or two and customise the editor that is displayed. I have managed to get a custom template working using this code
and defining the html. However, as part of my previous question I need to provide an initial screen for the user to select an event type. I know you will not know for definite but I would like to integrate this library into the template http://www.jqueryscript.net/demo/Create-Step-By-Step-Modal-with-jQuery-Bootstrap/ as this would allow me to accomplish what I need. Do you think it possible?
If not do you think it possible to show a context menu from which the user can select the Event Type and then your editor is invoked.
Sorry for the series of questions I would just like to know what is possible with the component.
Yes, the desired behavior is possible to achieve.
Any pointers to how this can be achieved?
Please note that integrating third party libraries falls outside the scope of our support service. In this cases the developer is entirely responsible for implementing and supporting these custom solutions.
For anyone who may be interested this is the bones of the solution:
<script id="customEditorTemplate" type="text/x-kendo-template">
<input type="text" />
alert("template is just executed, edit container is logged in console");