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

Getting error dropping grid row into scheduler

1 Answer 41 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 29 Nov 2013, 06:05 PM
I have a RadGrid and have enabled the drag and drop functionality to allow the dropping of rows onto a Scheduler.  The Scheduler itself is set to use a web service.

When I drop a row onto the Scheduler a new appointment is created on the client side but the web service method InsertAppointment is never called.  After stepping through in a debugger it seems there is an error occurring in this bit of Telerik code:
_storeResources: function(h) {
    var g = [];
    var f = this;
    h.forEach(function(i) {
    Array.add(g, {Key: i.get_key(),Type: i.get_type(),Text: i.get_text(),EncodedKey: i._getInternalKey(),Available: i.get_available(),Attributes: f._storeAttributes(i.get_attributes())});
    });
    return g;
}
The variable i is null, so the methods like i.get_key() do not exist.  Is anyone else seeing this error?  I tried to set up the example code from another post but was unable to attach the database, so it's difficult at this point to tell if I'm doing something wrong or there's a bug.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 Dec 2013, 11:49 AM
Hello Rob,

From the provided code it looks like the appointment or its custom resources is not being added properly. You can refer to this on-line demo where one way to drop appointments on RadScheduler when it is bound to web service is explained.

If this is not helpful please share at least the javascript you are using to drop the appointment so we could inspect it for possible wrong usage.

Regards,
Plamen
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Scheduler
Asked by
Dev
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or