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

Drag & drop (Scheduler in DNN)

1 Answer 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Julia Shah
Top achievements
Rank 1
Julia Shah asked on 25 Aug 2008, 07:57 PM
Hi,

I am using this demo for To Do List module: 
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Scheduler/Examples/DragAndDropIntegration/DefaultCS.aspx. Everything works fine in a web page, but once I put that code in a DNN module web control, I get an error:

Error: 'null' is null or not an object

The error happens in this code, on allDayDiv row.

                function isPartOfSchedulerAppointmentArea(htmlElement)  
                {  
                    // Determines if an html element is part of the scheduler appointment area  
                    // This can be either the rsContent or the rsAllDay div (in day and week view)  
                    var scheduler = $find('<%= RadScheduler1.ClientID %>');               
                    var allDayDiv = $telerik.getChildByClassName(scheduler.get_element(), "rsAllDay");  
                    var contentDiv = $telerik.getChildByClassName(scheduler.get_element(), "rsContent");  
                      
                    return $telerik.isDescendant(contentDiv, htmlElement) || $telerik.isDescendant(allDayDiv, htmlElement);  
                }  
 

How can I change the code so it would work in DNN?

Thanks,
Julia

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Aug 2008, 10:42 AM
Hello Julia,

Referencing the client object of a Telerik control in DNN is a bit tricky. I suggest you use the following KB article:

How to get the client object of a Telerik control in DNN


Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Julia Shah
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or