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

[Solved] 'null' is null or not an object error Using RadDock

4 Answers 144 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Abhishek Dixit
Top achievements
Rank 1
Abhishek Dixit asked on 27 Apr 2009, 12:06 PM
Hi Telerik Team,
 I have used the RadDock example to open a popup from my scheduler control. The example from Live Demos works fine but when I integrated the example in my website it is giving the error: 'null' is null or not an object.
I am able to bind the data into the scheduler and am able to view the data. But when I try to click on the control, this error comes up. Subsequently when i click on the control, nothing happens.
Also I have put my own controls in the ContentTemplate section of the RadDock.

Please advice me what I may be missing.

Regards,
Abhishek

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Apr 2009, 12:12 PM
Hello Abhishek,

Please, try using a debugger to provide us with more details about the error. Preferably, you should open a support ticket and send us a working demo which we can test locally.


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Abhishek Dixit
Top achievements
Rank 1
answered on 27 Apr 2009, 12:44 PM
Hi,
 The error is coming because of the line: 

var

 

dock = $find("RadDock1");
The dock variable is evaluating to null.
I am using the a master page and the unique id for RadDock is 'ctl00$ContentPlaceHolder1$RadDock1' when I did view source of my page.

Regards,
Abhishek

 

0
Accepted
Peter
Telerik team
answered on 27 Apr 2009, 12:52 PM
Hi Abhishek Dixit,

Because you use a master page, the client ID of RadDock is altered and a prefix is added to it. That is why you should use server code to find it as follows:

var dock = $find('<%=RadDock1.ClientID %>');


Best wishes,
Peter
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Abhishek Dixit
Top achievements
Rank 1
answered on 27 Apr 2009, 01:05 PM
Hi Telerik Team,
 Thanks for the solution - it fixed the issue.
Also thanks for the quick responses.

Thanks,
Abhishek
Tags
Scheduler
Asked by
Abhishek Dixit
Top achievements
Rank 1
Answers by
Peter
Telerik team
Abhishek Dixit
Top achievements
Rank 1
Share this question
or