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

How to set global RenderMode for date & time pcikers

1 Answer 39 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
miksh
Top achievements
Rank 1
Iron
miksh asked on 17 Feb 2015, 07:11 PM
I have a global setting in web.config
<add key="Telerik.Web.UI.RenderMode" value="lightweight" />

and with Q1 2015 beta you seemed to add a lightweight mode for date & time picker which causes undesired rendering behaviour in our project. I wonder how set a global render mode for those controls only?
I tried
<add key="Telerik.Web.UI.RenderMode" value="lightweight" />
<add key="Telerik.Web.UI.Calendar.RenderMode" value="classic" />

but it didn't help.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 20 Feb 2015, 11:10 AM
Hi,

In order to set the RenderMode for a control globally in the application you need to use the web.config file, like you are doing. To set the RenderMode for a RadDatePicker control you can use the following setting.

<appSettings>
    <add key="Telerik.Web.UI.RadDatePicker.RenderMode" value="classic" />
</appSettings>

Have in mind that only one RenderMode can be used per control per page. The RadDatePicker is a complex control that contains an input control. This means that all input controls on the page should have the same RenderMode as the RadDatePicker.

Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar
Asked by
miksh
Top achievements
Rank 1
Iron
Answers by
Viktor Tachev
Telerik team
Share this question
or