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

Disable all edit options and add custom commands

3 Answers 133 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 28 Sep 2011, 03:23 PM
Hello!
I have to do, but I don't know how few thing:
1. Hide delete button from Appointments and prevent to delete appointment
2. Prevent user drag/drop and resize Appointments, but not only prevent from write, but to not start dragging and start resizing.
3. After double click on Appointment I need to run Edit command, after double click on white space I need to run Create command.
I will be glad, if you help me.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Sep 2011, 02:21 PM
Hi Paweł,

Straight to your questions:

1. please check this thread - it's demonstrated how to remove the delete button.

2. you should implement custom DragDropBehavior and override CanStartDrag and CanStartResize method, the approach is explained here.

3. this sounds like the default behavior of the RadScheduleView, can you please explain in more details?

Greetings,
Yana
the Telerik team

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

0
Paweł
Top achievements
Rank 1
answered on 30 Sep 2011, 07:42 AM
AD. 1 - thx :)
AD. 2 - thx :)
AD. 3 - I need to bind my custom MVVM commands, not that telerik ones.
0
Accepted
Yana
Telerik team
answered on 05 Oct 2011, 01:56 PM
Hi Paweł,

I've attached a simple example which demonstrates how to use custom CreateAppointment and EditAppointment commands, please download it and give it a try.

Hope this helps.

Greetings,
Yana
the Telerik team

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

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