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

after insert event handler OR conditional multi-tab advanced forms possible?

1 Answer 29 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ellie
Top achievements
Rank 1
Ellie asked on 12 Mar 2020, 03:02 PM

Hi all,

My timetabling system needs to have an "allowed clash" functionality. This is because it's storing timetables per course, but some classes (e.g. maths) are shared between courses. So rather than detecting & preventing clashes on insert/update I need to go to a clash resolution section.

The preferred design from the specification would be to have a 2nd tab on the advanced insert/update form appear after clash validation, but we could also go with a new pop-up appearing after the appointment is saved.

My actual questions:

- would the advanced form support a multi-tab functionality?

- is there an AfterInsert / AfterUpdate event handler - i can only see handlers that fire before the SchedulerDBProvider talks to the database

Thanks,

Ellie

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 17 Mar 2020, 01:01 PM

Hello Ellie,

The Advanced form is a User Control inside a template, so the tabbing should not be an issue.

The bigger problem is that indeed there are no specific events fired after the Provider is invoked. One possible option is to use the DataBound event of the Scheduler and review the overlaps.

Another approach that I can suggest is using the FormCreated event to register a startup script that will populate any additional controls, with the conflicts and cancel the CRUD operation in the Insert/Update event by setting e.Cancel=true;. If needed, you can enhance your Provider to have a method that on a given date/appointment to return the conflicting data, that you can show in the Advanced form.

Regards,
Peter Milchev
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
Scheduler
Asked by
Ellie
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or