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

RadDateTimePicker client-side object - set_selectedDate not working

1 Answer 128 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roshil
Top achievements
Rank 1
Roshil asked on 23 Jul 2011, 07:24 AM
Hi,

   I have the following script
       

function DateSelectedFirstPref(sender, args) {         

                 if (!isTimeSelected) {

                     var val = "08:00:00";

                     var dateString = sender._dateInput._initialValue;

                     var month = dateString.split("/")[0];

                     var day = dateString.split("/")[1];

                     var yearTime = dateString.split("/")[2];

                     var year = yearTime.split(" ")[0];            

                      sender.set_selectedDate(new Date(year, month, day, val.split(":")[0], val.split(":")[1], val.split(":")[2], 0));                      

                

                 }

            }


When i select a date from datetime picker, it is not showing any date and time,the raddatetime picker's textbox is empty.
Please help me on this issue.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 28 Jul 2011, 08:57 AM
Hello Roshil,

The client script looks correct to me.

Could you please let me know when the script is evaluated. The RadDateInput markup and the corresponding code behind if such exists could help us further research ont he problem.

Regards,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Roshil
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or