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

migration from RadScheduler to RadScheduleView

6 Answers 121 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 12 Sep 2011, 09:28 AM
Hi,

In Scheduler Control it was very easy to handle the different cases of events.
I have the following problem in SchedView Control:
When the user "doubleclicks" an appointment then ShowDialog-Event is fired. In my case I set "e.Cancel" and I have my own dialog to Edit the data of the appointment. Fine!
But when the user user deletes an appointment (per single-click on the cross-symbol in the right corner) the same event (ShowDialog) is fired (before the Appoint_Deleting event is fired !!!!!). I cant´t find a solution to handle the difference between these cases (Edit or Delete) inside the ShowDialog-event.
I´m also missing the ShowsConfirmationWindowOnDelete property from Schedule-Control in ScheduleView-Control to suppress the default dialog and show my own dialog.
Thank you in advance.

Regards,
Stefan

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Sep 2011, 10:58 AM
Hi Stefan,

You can find which window is about to be opened in ShowDialog event using the DialogViewModel property of the event args, please check here for more details. Also here it is explained how to suppress the confirmation window.

Hope this helps.

All the best,
Yana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Stefan
Top achievements
Rank 1
answered on 12 Sep 2011, 12:02 PM
Hello Yana,

Thanks a lot, that´s the solution I´m looking for - it works fine!
At the moment I have one more little problem and I can´t find a solution.
When the user changes an appointment (viewmode = timeline) I always want to change/display hole days (timesale = 1 day, and not timescale like "hh:mm"). In older Version of Scheduler-Control it works by the desired way.

Any idea, thank you in advance.

kindly regards,
Stefan


my definitions:

                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:MonthViewDefinition/>
                    <telerik:TimelineViewDefinition MajorTickLength="1day" MinorTickLength="1day" VisibleDays="21"/>
                </telerik:RadScheduleView.ViewDefinitions>


 
0
Accepted
Yana
Telerik team
answered on 13 Sep 2011, 01:14 PM
Hi Stefan,

Could you please explain in more details what you mean?  Setting MinorTickLength and MajorTickLength should be enough, may be I am missing something? Can you send us a screenshot?

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Stefan
Top achievements
Rank 1
answered on 13 Sep 2011, 02:01 PM
Hi Yana,

I try to make changes with a 24 hour timesclale.
for example: if I change the end of the appointment with RadScheduler control (from 12.09. to 13.09.) the appointment is shown automatically as a full day (24 hours) appointment and it´s fixed (from 0-24 hour). That´s what I need!

with RadScheduler...


after migrate to RadScheduleView it has a minute-timescaling. In my case I need the handling as it is in RadScheduler.


kind regareds,
Stefan
0
Stefan
Top achievements
Rank 1
answered on 14 Sep 2011, 10:28 AM
Hi Yana,

The SnapAppointments-Property brings the solution I´m looking for.
(Sorry, my mistake. I set the property to "false", instead of "true")
Thanks.

kindly regards,
Stefan
0
Yana
Telerik team
answered on 14 Sep 2011, 10:56 AM
Hello Stefan,

I'm glad that you've managed to resolve the problem.

Kind regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Stefan
Top achievements
Rank 1
Answers by
Yana
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or