Getting error dropping grid row into scheduler

2 posts, 0 answers
  1. Rob
    Rob avatar
    43 posts
    Member since:
    Aug 2010

    Posted 29 Nov 2013 Link to this post

    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.
  2. Plamen
    Plamen avatar
    2723 posts

    Posted 04 Dec 2013 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top