When appointment selected and user click enter edit view should open

2 posts, 0 answers
  1. Hardik
    Hardik avatar
    61 posts
    Member since:
    Jun 2011

    Posted 07 Jul 2011 Link to this post

    Hi support,

    I want keyboard usability in scheudlerView. When using Tab key appointment is get selected. Now if i press enter key edit appointment should open.

    I think logic like that.

     private void XamlRadScheduleView_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
          if (e.Key == System.Windows.Input.Key.Enter)
          {     
            if (this.XamlRadScheduleView.SelectedAppointment != null)
            {
              this.XamlRadScheduleView_AppointmentEditing(this, What thing should pass here?)
            }
          }     
        }


    Or any other way possible?

    Thanks
    H@rdik Pancholi
  2. Yana
    Admin
    Yana avatar
    4714 posts

    Posted 07 Jul 2011 Link to this post

    Hello Hardik,

    Please try it like this:

    private void XamlRadScheduleView_KeyDown(object sender, KeyEventArgs e)
    {
            if (e.Key == System.Windows.Input.Key.Enter)
            {
                if (this.XamlRadScheduleView.SelectedAppointment != null)
                {
                    RadScheduleViewCommands.EditAppointment.Execute(XamlRadScheduleView.SelectedAppointment, XamlRadScheduleView);
                }
            }     
    }

    Hope this helps.

    Best wishes,
    Yana
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top