How to set global RenderMode for date & time pcikers

2 posts, 0 answers
  1. miksh
    miksh avatar
    275 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
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 20 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top