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

Event on selecting a slot

1 Answer 92 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 02 Apr 2015, 05:57 PM
I am looking for an event that will fire when user clicks on a slot.

I have tried AppointmentSelectionChanged event but that works only the first time, I have also tried mouse down and left mouse down but they are not even fired.

Thanks
vikas

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 03 Apr 2015, 11:58 AM
Hello Vikas,

RadScheduleView does not provide such an event. However, what we could suggest is to bind the SelectedSlot property to a property inside the ViewModel - thus you will be able to get all needed information for the currently selected Slot right after its selection:
public class MyViewModel : ViewModelBase
{
    private Slot selectedSlot;
    public Slot SelectedSlot
    {
        get
        {
            return selectedSlot;
        }
 
        set
        {
            if (selectedSlot != value)
            {
                selectedSlot = value;
                this.OnPropertyChanged("SelectedSlot");
            }
        }
    }
}

And in Xaml:
<telerik:RadScheduleView SelectedSlot="{Binding SelectedSlot, Mode=TwoWay}">
...
</telerik:RadScheduleView>

However, if that is not what you're looking for. Please provide us some more details about your scenario and the functionality you need to achieve using the currently selected Slot in order to provide you with a prompt solution if possible?

We're looking forward to hearing from you.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ScheduleView
Asked by
Vikas
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or