How to set global RenderMode for date & time pcikers

2 posts, 0 answers
  1. miksh
    miksh avatar
    277 posts
    Member since:
    Nov 2006

    Posted 17 Feb 2015 Link to this post

    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.
  2. Viktor Tachev
    Viktor Tachev avatar
    1768 posts

    Posted 20 Feb 2015 Link to this post


    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.

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

    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.

    Viktor Tachev

    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.

Back to Top