TreeView and Scheduler

2 posts, 0 answers
  1. Jostein
    Jostein avatar
    16 posts
    Member since:
    Oct 2011

    Posted 07 Oct 2011 Link to this post

    I have a RadTreeView and a RadScheduler. When I drag and drop items from the TreeView into the scheduler, i want an appointment inserted. I do not use a datasource for the Scheduler, and what I do here is on the RadTreeView.OnNodeDropping i have the following JavaScript:

     

     

    function nodeDropping(sender, eventArgs) {

     

     

     

    var node = eventArgs.get_sourceNode();

     

     

     

    var args = node.get_value();

     

     

    __doPostBack(

     

    'ctl00$ContentPlaceHolder1$upTest', args);
    }

    Then in the page load, I catch these arguments and insert an appointment.
    My problem is: how to get the date and time of the Scheduler? Meaning the spot I dropped my item on. I have searched the documentation, but I can not find a list of the functions like get_sourceNode() etc that I can use. I can use

     

    eventArgs.get_htmlElement() to get a referance to the element where I dropped the item (the Scheduler), but how to get the exact position I dropped it into?

  2. Plamen
    Admin
    Plamen avatar
    3079 posts

    Posted 10 Oct 2011 Link to this post

    Hello Jostein,

    You can refer to the Drag and Drop demo where a similar functionality is explained and handled in the isPartOfSchedulerAppointmentArea function..

    Hope this will be helpful.

    All the best,
    Plamen Zdravkov
    the Telerik team
    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 their blog feed now
Back to Top