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

'this._pickers.startDate' is null or not an object

8 Answers 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 25 May 2010, 05:49 AM
VS 2010 (.NET 40) RadControls AJAX 2010 Q1

I'm using the most simple of setups...  SQLDataSource  and a table with only the columns suggested in the Scheduler's Data Source Configuration Wizard.  If i double click on any appointment that isn't an All Day event, i'll get this script error message.

Error: 'this._pickers.startDate' is null or not an object

which, when viewed in the debugger, refers to this line of code (line 4779) of the Telerik.Web.UI.WebResource:

 

var k=[$get(this._pickers.startDate.get_element().id+"_wrapper"),$get(this._pickers.startTime.get_element().id+"_wrapper"),$get(this._pickers.startTime.get_element().id+"_timeView_wrapper"),$get(this._pickers.endDate.get_element().id+"_wrapper"),$get(this._pickers.endTime.get_element().id+"_wrapper"),$get(this._pickers.endTime.get_element().id+"_timeView_wrapper"),$get(this._templateId+"_SharedCalendar")]; 

I have no other customizations to the RadScheduler: 
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndDate"   
DataKeyField="CalId" DataSourceID="SqlDataSource1" DataStartField="StartDate"   
DataSubjectField="Subject" DataDescriptionField="Description"   
DataRecurrenceField="RecurDesc" DataRecurrenceParentKeyField="RecurrenceID" >   
</telerik:RadScheduler> 
 
 


And i have one of these that comes before the RadScheduler declaration:

 

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">   
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">   
</telerik:RadScriptManager> 
 
 


Any ideas?

 

 

 

 



8 Answers, 1 is accepted

Sort by
0
Evans Quirion
Top achievements
Rank 1
answered on 25 May 2010, 04:35 PM
Same problem here....
0
Evans Quirion
Top achievements
Rank 1
answered on 25 May 2010, 04:51 PM
Solved with last version of controls. Thanks.
0
pucsoftware
Top achievements
Rank 1
answered on 22 Jun 2010, 04:28 PM

Also, getting this error. I have the latest version. Error occurs when the AdvancedForm opens.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Tue, 22 Jun 2010 15:24:44 UTC

Message: 'this._pickers.startDate' is null or not an object
Line: 347
Char: 1
Code: 0
URI: http://pucportal.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=mgrScript_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2010.1.519.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afcd44c12-f50d-4937-b05d-1aa46b5c5b3e%3a41a6cee9%3ab7778d6c%3a8674cba1%3ac08e9f8a%3a2e42e72a%3aef347303%3aa51ee93e%3aaa288e2d%3ae085fe68%3a59462f1

 

0
pucsoftware
Top achievements
Rank 1
answered on 22 Jun 2010, 07:07 PM
Still getting this error. When I debug the application I don't get the error. However, if I navigate to the site just using the browser I get the error? I'm developing this on my local machine and I have a website pointing to this application so I don't need to debug to view the site.

UPDATE:
This appears to be an issue with the 3.5 dll. I upgraded my project to 4.0 and used the 4.0 dll and things started working.

0
Peter
Telerik team
answered on 25 Jun 2010, 10:38 AM

Thanks for the update. We will log the issue and do some more investigation.


Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sophal
Top achievements
Rank 1
answered on 06 Sep 2010, 05:53 AM
I have the same problem too. I don't customize any template. I just test the EntityDataSource feature. I found that when i make new appointment or edit, It show that message. It seem something wrong.

I use VS2010 (target .Net40 project). Have any idea?
The code as show bellow.

<
form id="form1" runat="server">
<div>
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
 
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadScheduler2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler2" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Office2007" />
 
    <asp:EntityDataSource ID="EntityDataSource1" runat="server"
        ConnectionString="name=TELERIKEntities" DefaultContainerName="TELERIKEntities"
        EnableDelete="True" EnableInsert="True"
        EnableUpdate="True" EntitySetName="Appointments" EntityTypeFilter="Appointment">
    </asp:EntityDataSource>
 
    <asp:EntityDataSource ID="EntityDataSource2" runat="server"
        ConnectionString="name=TELERIKEntities" DefaultContainerName="TELERIKEntities"
        EntitySetName="Rooms" EntityTypeFilter="Room">
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="EntityDataSource3" runat="server"
        ConnectionString="name=TELERIKEntities" DefaultContainerName="TELERIKEntities"
        EntitySetName="Users" EntityTypeFilter="User">
    </asp:EntityDataSource>
     
    <telerik:RadScheduler runat="server" ID="RadScheduler2" Width="748px" SelectedDate="2007-03-30"
        DayStartTime="08:00:00" DayEndTime="18:00:00" DataKeyField="ID" DataSubjectField="Subject"
        DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule"
        DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1"
        Skin="Office2007">
        <AdvancedForm Modal="true" />
        <ResourceTypes>
            <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID"
                DataSourceID="EntityDataSource2" />
            <telerik:ResourceType KeyField="ID" Name="User" TextField="UserName" ForeignKeyField="UserID"
                DataSourceID="EntityDataSource3" />
        </ResourceTypes>
    </telerik:RadScheduler>
</div>
</form>
0
Peter
Telerik team
answered on 08 Sep 2010, 03:19 PM
Hello Sophal,

Can you reproduce the problem with the EntityDataSource demo at your local installation of the Telerik controls? If yes, please, let us know what modifications you have made.

Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sophal
Top achievements
Rank 1
answered on 14 Sep 2010, 09:02 AM
Thanks,

After i upgrade to VS 2010 (.NET 40) RadControls AJAX 2010 Q2, I can solve the problem.

Thanks again!
Tags
Scheduler
Asked by
Ben
Top achievements
Rank 1
Answers by
Evans Quirion
Top achievements
Rank 1
pucsoftware
Top achievements
Rank 1
Peter
Telerik team
Sophal
Top achievements
Rank 1
Share this question
or