Scheduler wtih Grid

Hi,

I have a issue while including Grid in my scheduler.
The initial loading of events in Grid and Scheduler is working fine and am able to drag and drop job from Grid to scheduler.
On delete event in my scheduler I will move the job back to Grid and will reload both Grid and Scheduler by calling loadXML, load respectively.
After this when i try to drag n drop the same job from Grid to Scheduler I am getting a javascript error as “jobGrid._dragged.0 is null or not an object”

Below is my code snippet for dragevent

scheduler.attachEvent(“onExternalDragIn”, function(id, source, e){
scheduler.getEvent(id).text = jobGrid._dragged[0].idd;
return true;
});

I have attached am image for your reference.
Please help me in resolving this issue.

Thanks,
Vijay