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

Drag Appointment NewResourceID is nothing

10 Answers 104 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Denis Cilliers
Top achievements
Rank 1
Denis Cilliers asked on 14 Jan 2013, 03:45 PM
When you drag an appointment for the second time the NewResourceID is nothing

Thus when you drag an appointment to a new Resource it works the first time, on draging the appointment back to its original location the NewResourceID is not set

?

10 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 16 Jan 2013, 01:21 PM
Hello Denis,

We addressed similar issue in our latest major release - Q3 2012 (2012.3.1017). Please, could you confirm that you are using this version? If yes, please send us your application and we will investigate the issue further.

I am looking forward to your reply.
 
Kind regards,
Jack
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Denis Cilliers
Top achievements
Rank 1
answered on 18 Jan 2013, 10:51 AM
The version i'm using is 2012.3.1211 which is a later version that you indicate

It is a bit detailed but Here goes
  1. Setup a Scheduler with 2 appointments Summary and Test in different Resources
  2. Switch to Week View
  3. Drag the Summary appointment to the same slot as the Test Appointment in Resource 2 -They will now be double booked
  4. Drag the Summary appointment back to its original slot in Resource 1
  5. Drag the Test appointment to the same slot in Resource 1 - They will now be double booked
  6. Drag the Test appointment to a new Day in Resource 1and the NewResourceID is nothing
  7. Drag the Summary appointment to a new day in Resource 1 and the NewResourceID is nothing
  8. If you drag these appointments around in Resource 1 they keep the nothing value
  9. If you Drag them to Resource 2 they get the value back

So the bug seems to be when the Appointments overlap in any way they lose the NewResourceID


I have send on the Sample project in the Support Ticket, but left the details here for the community 

The Draging Event is as follows

Private Sub RadScheduler1_AppointmentDropping(sender As System.Object, e As Telerik.WinControls.UI.AppointmentMovingEventArgs)
    Handles RadScheduler1.AppointmentDropping
 
       If e.NewResourceId Is Nothing Then
           Me.RadLabel2.Text = "Nothing in e.NewResourceId.KeyValue"
       Else
           Me.RadLabel2.Text = e.NewResourceId.KeyValue
       End If
 End Sub

0
Accepted
Jack
Telerik team
answered on 21 Jan 2013, 06:16 AM
Hello Denis,

Like my colleague Ivan said in your support ticket: "The NewResourceID is always Nothing when using ungrouped view or when dragging an appointment within the same resource view. It is Nothing because no change to this property has actually occurred. This is the default behavior of RadScheduler and it is not related to overlapping appointments."

If you have further questions, do not hesitate to contact us.
 
Kind regards,
Jack
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Denis Cilliers
Top achievements
Rank 1
answered on 28 Jan 2013, 03:22 PM
the strange behavior of this value results in 3 different states and needs an If to handle what would be a simple reference to the value

As on the first Drop in the same Resource the value is the same as the Appointment_Resource_ID
On the Second drop in the same Resource the value is Nothing
On a drop to a new Resource the value is a valid NewResourceId.KeyValue

Ah well it works OK now just a bit strange for my liking

'Check for New Resource ID
       Dim dropResourceId As Integer? = Nothing
       If Not e.NewResourceId Is Nothing Then
           dropResourceId = e.NewResourceId.KeyValue
       Else
           dropResourceId = CurrentAppointment.Appointment_Resource_ID
       End 
0
Jack
Telerik team
answered on 29 Jan 2013, 03:03 PM
Hello Denis,

I understand your concerns. The described behavior is by design. I will discuss the issue with our devs and we will consider improving our API in future. 

If you have other questions, we will be glad to help.
 
Regards,
Jack
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Ali
Top achievements
Rank 1
answered on 04 Mar 2013, 02:11 PM
Dear Sirs,

when drag and drop an appointment on the scheduler e.newresourceid is always nothing (in the appointment dropping event )
,however I am using grouping by resourceid ,and i am not moving the appointment to the same resource
, what is the problem please advise  , is it telerik version updates or what?

my used version is v.2013.1.220.40 dev

Thanks and Best Regards
0
Ali
Top achievements
Rank 1
answered on 05 Mar 2013, 08:35 AM
Dear Sirs,

my used version is v.2013.1.220.40 dev---in GAC
however the one which was working is v.2012.3.1017.20

now when i referenced the old version in my project in visual studio the e.newrecourcesid worked properly , but the problem is that the GAC version differs than the project design version , so how to downgrade the GAC to  v.2012.3.1017.20 , Please advise


Thanks and Best Regards               
0
Jack
Telerik team
answered on 07 Mar 2013, 09:25 AM
Hello Ali,

Thank you for contacting us.

Indeed, when using our latest release the NewResourceId property is empty when handling AppointmentDropping event. You can use the AppointmentDropped event instead. I logged the issue in our issue tracking system and it will be addressed in one of our upcoming releases. Use this link to track the issue status. I updated also your Telerik points.

You can downgrade to our previous version by uninstalling the last one and downloading the previous version from our site. To be able to do this you should click on All product versions on Product Versions page.

Should you have other questions, do not hesitate to ask.

Regards,
Jack
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

Interested, but can’t attend? Register anyway and we’ll send you the recording.
0
Khaled
Top achievements
Rank 1
answered on 08 Mar 2013, 08:40 PM
could you please give me a link to the product version page, to be able to click on all product to download v.2012.3.1017

Thanks and Regards
Khaled Ezzat
0
Jack
Telerik team
answered on 11 Mar 2013, 03:44 PM
Hello Khaled,

Here is a direct link to the download page for our Q3 2012 (2012.3.1017) version:
http://www.telerik.com/account/your-products/product-versions.aspx?pmvid=2982&pid=523

You can reach this page by following these steps:

1. Log into www.telerik.com with your account.
2. Click the Manage products menu option.
3. Click on RadControls for WinForms.
4. Click the Download Installer and other resources button.
5. Click the all product versions option.
6. Click the 2012.3 1017 option from the list.

Feel free to write back if you need further assistance.

Greetings,
Jack
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
Scheduler and Reminder
Asked by
Denis Cilliers
Top achievements
Rank 1
Answers by
Jack
Telerik team
Denis Cilliers
Top achievements
Rank 1
Ali
Top achievements
Rank 1
Khaled
Top achievements
Rank 1
Share this question
or