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

How to disable selecting a timespan

2 Answers 106 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 24 Jun 2011, 03:26 PM
How can I, in the RadScheduleView, disable it that the user can select a timespan via the mouse. 
In Day-view or in Timeline-view, the user can select a timespan by dragging the mouse from the start-time to the end-time. The selected timespan is marked in yellow by default. I want to disable that. 

2 Answers, 1 is accepted

Sort by
0
Johannes
Top achievements
Rank 1
answered on 23 Aug 2011, 11:02 AM
Can anyone help me with this?
I've played around with the properties SlotSelectionBehavior and AppointmentSelectionBehavior but I don't know exactly how to disable marking of a timespan. I don't want to select a specific hour (highlighted yellow by default) when clicking on the ScheduleView (e.g. in TimelineView)

Background: my customer wants to pan the view around. I've implemented panning using the MouseMove-event. The only thing that's missing is to NOT select (or to not highlight) the hour where the user has clicked.
0
Konstantina
Telerik team
answered on 25 Aug 2011, 01:54 PM
Hi Johannes,

You can remove the orange color when selecting slot by setting the MouseOverHighlightStyle of the ScheduleView control. You can set its background to Transparent for example.

Hope this information helps.

Best wishes,
Konstantina
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 >>

Tags
ScheduleView
Asked by
Johannes
Top achievements
Rank 1
Answers by
Johannes
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or