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

When appointment selected and user click enter edit view should open

1 Answer 64 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Hardik
Top achievements
Rank 1
Hardik asked on 07 Jul 2011, 08:11 AM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Jul 2011, 02:09 PM
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!

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