Scheduler custom edit dialog

4 posts, 1 answers
  1. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 03 Jul 2020 Link to this post

    Hi, 

    I created a custom edit dialog with one input (for now), "submit" and "close" button for my item by adding a form prop to SchedulerEditItem https://stackblitz.com/edit/react-zxvhmh (double click on any item and dialog will open)

    My questions are:

    1) Did I implement the submit correctly? Because I did not find any examples and the scheduler documentation in very confusing.

    2) I need a similar dialog open on slot double click. Is there a prop like "form" available for the slot? If not what is your recommendation?

  2. Answer
    Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 06 Jul 2020 Link to this post

    Hello, Matej,

    Regarding the questions:

    1) Yes, the event is implemented correctly. As for the documentation, we are currently working on an official custom form support and once this is done it will come with a detailed article and an example:

    https://github.com/telerik/kendo-react/issues/542

    2) Yes, there is the same property for the slot. It will require a custom editSlot:

    https://www.telerik.com/kendo-react-ui/components/scheduler/api/SchedulerProps/#toc-editslot

    https://stackblitz.com/edit/react-ephmg4?file=app/main.js

    Please have in mind that even if this is currently possible, we can recommend monitoring the feature request and check how it will be done after the enhancement as the new approach could be faster and more stable.

    Regards,
    Stefan
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Matej
    Matej avatar
    71 posts
    Member since:
    Jun 2019

    Posted 09 Jul 2020 in reply to Stefan Link to this post

    In SchedulerForm what is the difference between  onCancel and onClose and is there a plan to add onDelete? I need to be able to delete item from the custom dialog.
  4. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 10 Jul 2020 Link to this post

    Hello, Matej,

    The difference between them is the buttons that trigger them, but they are both fired when the user decided to close the form.

    As for the delete, yes we will have that in mind when making the custom form as the developer should be able to easily setup an update, cancel and delete editing operations with the custom form.

    Regards,
    Stefan
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top