Localize Date Display Format

2 posts, 0 answers
  1. Kerry
    Kerry avatar
    27 posts
    Member since:
    Jun 2013

    Posted 27 Oct 2016 Link to this post

    I have an odd issue with the display date being in the wrong culture. When simply adding the control on the HTML side, there is no problem.

    However, in our situation, we have the datepicker embedded in a user control. The user control is then dynamically created on the fly when needed using the TemplateControl.LoadControl method.

    I have read an older article in the UI for WPF forum that I can set the Culture to Null. However, I cannot seem to do this programatically on the ASP.NET side, as we are using UI for AJAX. Any help with this issue would be greatly appreciated.

  2. Viktor Tachev
    Viktor Tachev avatar
    1784 posts

    Posted 01 Nov 2016 Link to this post

    Hello Kerry,

    By default the RadDatePicker will use the culture of the server. If you would like to specify the culture for the control explicitly you can use the options described in the article below:

    Alternatively you can specify the culture for the entire application in the web.config :

    Viktor Tachev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top