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

TreeView and Scheduler

1 Answer 62 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jostein
Top achievements
Rank 1
Jostein asked on 07 Oct 2011, 09:44 AM
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?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 10 Oct 2011, 03:45 PM
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
Tags
Scheduler
Asked by
Jostein
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or