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

RadDateTimePicker not working in Sharepoint 2010 Application Page

3 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emir Prcic
Top achievements
Rank 1
Emir Prcic asked on 22 Jun 2011, 07:56 AM
Hy

I´ve create an application page using some RadControls. But the RadDateTimePicker is not working within the ApplicationPage. The Date and Time Dialogs do not pop up. I´ve used them in WebParts and they worked fine there, it seems to have something to do with the ApplicationPage.

Furthermore, if I use the Applicationpage within a ModalDialog (which I prefer to use) it is completely unusable. If I click on the Button for either Date or Time, a kind of Postback leaves the whole Modaldialog and reloads the page (only the page itself, even without the sharepointmasterpage).

3 Answers, 1 is accepted

Sort by
0
Emir Prcic
Top achievements
Rank 1
answered on 22 Jun 2011, 09:11 AM
ok, it is working now. It seems that it was somehow related to a misconfiguration of a datetimepicker, which broke javascript (even the checkbox of a radbutton didn´t work anymore). I deleted the datetimepicker and created it new, now it is working.

However, I am not able to set a Skin on the datetimepicker. The Dateinput stays always in the default skin. I checked the css and found out, that the the css-style

"html body .RadInput_Windows7 .riRead, html body .RadInput_Read_Windows7
" sets the border-color to #D9D9D9

which overrides

"html body .RadInput_Windows7 .riTextBox, html body .RadInputMgr_Windows7" (which had previously set the border-color to #B8CBDE, which is that what I want)

Therefore the dateinput seems always to use the default skin

0
Emir Prcic
Top achievements
Rank 1
answered on 22 Jun 2011, 09:14 AM
ok, found out that this was related to setting the Dateinput Field to Readonly.
0
Marin
Telerik team
answered on 22 Jun 2011, 01:15 PM
Hi,

 This the default behaviour for all input controls. You can use the ReadOnlyStyle property to change the default style according to your needs.

Best wishes,
Marin
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
Emir Prcic
Top achievements
Rank 1
Answers by
Emir Prcic
Top achievements
Rank 1
Marin
Telerik team
Share this question
or