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

Scheduler custom edit dialog

3 Answers 382 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matej
Top achievements
Rank 1
Veteran
Matej asked on 03 Jul 2020, 02:08 PM

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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 06 Jul 2020, 05:17 AM

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.
0
Matej
Top achievements
Rank 1
Veteran
answered on 09 Jul 2020, 03:10 PM
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.
0
Stefan
Telerik team
answered on 10 Jul 2020, 06:07 AM

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.
Tags
General Discussions
Asked by
Matej
Top achievements
Rank 1
Veteran
Answers by
Stefan
Telerik team
Matej
Top achievements
Rank 1
Veteran
Share this question
or