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

Error with RadDateTimePicker

6 Answers 69 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 25 Nov 2009, 07:57 PM
Hello,

I'm getting a client-side error with the RadTimeView client-side component:

_setTimeMatrix
var tableElement = this._findTableElement(this.DivElement); //This line returns null, so rows is empty

var tableRowLength = tableElement.rows.length;

I'm using your RadControlsExtensions to render these controls... Is there something I may be missing?  I have a reference to Html.RadControlScripts<RadTimeView> in my view and a RadScriptManager:

<%= Html.RadControlScripts<RadCalendar>() %>

<%= Html.RadControlScripts<RadDateInput>() %>

<%= Html.RadControlScripts<RadTimeView>() %>

<%= Html.RadControlScripts<RadTextBox>() %>

<%= Html.RadControlCss<RadDateTimePicker>() %>

<%= Html.RadControlScripts<RadDateTimePicker>() %>

<%= Html.RadControlCss<RadComboBox>() %>

<%= Html.RadControlScripts<RadComboBox>() %>

<%= Html.RadControl<RadDateTimePicker>((rad) =>

{

rad.ID = "StartDate";

}) %>

6 Answers, 1 is accepted

Sort by
0
Brian Mains
Top achievements
Rank 1
answered on 30 Nov 2009, 02:33 PM
Am I missing something because I split the control into separate RadDatePicker and RadTimePicker controls, and I see the text: open the control window popup and the calendar that appears is not styled....  what am I missing?

Thanks.
0
Brian Mains
Top achievements
Rank 1
answered on 30 Nov 2009, 03:20 PM
I was missing something; I was missing some CSS references which caused the issue.
0
Georgi Krustev
Telerik team
answered on 30 Nov 2009, 04:31 PM
Hello Brian,

Could you please send us a working sample project which reproduces the depicted issue. Thus I will review it locally and advice you further.

Regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Brian Mains
Top achievements
Rank 1
answered on 30 Nov 2009, 08:28 PM
I'm going to submit a support ticket with the test code.
0
Accepted
Georgi Krustev
Telerik team
answered on 01 Dec 2009, 02:21 PM
Hello Brian Mains,

I have answer in the support thread opened on the same matter:

After I reviewed your test project I noticed that some CSS styles are not loaded. Please examine the attached test project which introduces working RadTimePicker in MVC enviroment. In this current example the RadScriptManager should be placed in the begging of the page.


Kind regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Brian Mains
Top achievements
Rank 1
answered on 01 Dec 2009, 06:05 PM
Yes much better ,thanks.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Brian Mains
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or