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

Bug: SelectedSlot is not preserved in latest release

6 Answers 66 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 29 Apr 2011, 09:58 AM
See the attached screen shots. They are taken in your Context Menu Integration example.

  • Screen shot 1 - I am creating an appointment in a slot I pre-selected. No other appointments exist in the current view. You can see that the slot is selected in the background.
  • Screen shot 2 - I have now selected a slot and opened the context menu. The slot is still selected behind the context menu.
  • Screen shot 3 - Now I have clicked "New Appointment" in the context menu. As you can see, the slot is no longer selected.

This bug does not affect the standard functionality of the ScheduleView, but in our scenario it makes a huge difference. In fact it breaks it completely. I will explain:
  1. When the AppointmentCreating event is fired we cancel it immediately and present the user with a window where he/she can select the type of event to be created.
  2. When the type has been selected, we make a service call to get an entity for the new appointment, populated with a bunch of default values and such.
  3. When the entity comes back we execute the CreateAppointmentCommand manually.
  4. The AppointmentCreating event is now fired again. This time we populate e.Appointment with values that we got from the service call. We also populate the Start and End properties with the values from the SelectedSlot. And here is the problem. If other appointments exist in the view, the SelectedSlot is null and we cannot use i, which means that the appointment will be created at the wrong time.

Note that this bug occurs also when double clicking to create a new event.

I guess we might be able to hack our way around this, but this is clearly a bug. It was not present in the previous version and we would prefer that it was fixed. We need a fix within a few weeks, so I am hoping that you can squeeze this into an internal build.

Best regards,
/Henrik

6 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 May 2011, 02:55 PM
Hi Henrik,

Thank you for reporting this issue, we'll do our best to fix it in the internal build until he end of the month. We hope that this timeframe is suitable for you.

As a token of gratitude for your involvement, I've updated your points.

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
hwsoderlund
Top achievements
Rank 1
answered on 06 May 2011, 04:15 PM
That works for me. It would be great if you could report back here when the bug is fixed. Thank you.
0
Yana
Telerik team
answered on 09 May 2011, 01:08 PM
Hello Henrik,

We've logged the bug in our public issue tracking system, you can track its progress here.

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
hwsoderlund
Top achievements
Rank 1
answered on 25 May 2011, 08:43 AM
I just checked the PITS issue, and I am not seeing any activity on it yet. This is a very important issue for us, and I would like to know if it will still make it into an internal build before the end of the month.

Thank you,
/Henrik
0
Accepted
Yana
Telerik team
answered on 25 May 2011, 01:39 PM
Hi Henrik,

The issue is already fixed and the fix will be available in the next internal build.  We'll update the PITS item shortly.

Best wishes,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
hwsoderlund
Top achievements
Rank 1
answered on 25 May 2011, 01:45 PM
Great! Thank you.
Tags
ScheduleView
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Yana
Telerik team
hwsoderlund
Top achievements
Rank 1
Share this question
or