Event on selecting a slot

2 posts, 1 answers
  1. Vikas
    Vikas avatar
    64 posts
    Member since:
    May 2014

    Posted 02 Apr 2015 Link to this post

    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
  2. Answer
    Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 03 Apr 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top