Hi,
Is there any keyboard short cut key to select an appoinment.
What i want is after any 1 appointment is selected in ultraDayView/ultraWeekView and then if user presses Shift+Up/Shift+Down keys the Appoinment above or below should also get selected.
Currently on pressing Shift+Up/Shoft+Down keys the cells of ultraDayView/ultraWeekView gets selected.
Have attached the snap shot of Actual and Expected output
Thanks,
Chitra
Hi Chitra,
Thank you for contacting Infragistics Developer Support.
What you could do in order to implement such feature is to handle the KeyDown and SelectedAppointment events of the DayView. In the SelectedAppointment event you can keep a reference of the last selected by the user Appointment. You also need a reference to the appointment that should be changed. After that in the KeyDown, if the user pressed shift + up/down, you can get the next/previous appointment and select/deselect it depending on what the user has pressed. You will also need to cancel the BeforePerformAction event when the user presses shift + up/down keys, in order to disable the default behavior of the DayView.
I have attached a sample which demonstrates this suggestion.
Let me know if you have any additional questions.
Hi Dimitar,
This works fine for Shift+Up/Down, I wanted to implement the same with Shift+Right/Left. I wrote the condition for Shift+Right and Shift+Left in the KeyDown event. But it never hits the conditions.
Also i found that i my application has multiple owner and when i am setting the following condition
this.ultraDayView1.GroupingStyle = DayViewGroupingStyle.NoGrouping;
it Hits the Shift+Right and Shift+Left condition in the KeyDown event correctly
But When i am setting following condition
this.ultraDayView1.GroupingStyle = DayViewGroupingStyle.DateWithinOwner;
it does not Hit the Shift+Right and Shift+Left condition in the KeyDown event
Is there any other event which needs to be cancled while using DayViewGroupingStyle.DateWithinOwner because i need to display owner that way i dont need 'DayViewGroupingStyle.NoGrouping'.
Hello Chitra,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thanks for your reply, using the Keymapping i was able to perform Shift+Right/Left.