Use 24 hour format in min zoomed in View

4 posts, 1 answers
  1. Simon
    Simon avatar
    2 posts
    Member since:
    Jul 2013

    Posted 18 Sep 2013 Link to this post

    Hello,

    I have found that even though i set the correct (german) culture on currentthread and CurrentUIThread, RadGanttView still uses a 12 hour format fo display times when zoomed in. I'd like to change this to a corresponding 24-hour format, that is used the default for this culture.

    I would expect the ganttview to respect certain culture settings like this.

    How can i achieve this?

    Thanks
  2. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 23 Sep 2013 Link to this post

    Hello Simon,

    Thank you for contacting us.

    We managed to observe the issue and it seems there is a bug in the current version of the control that caused the culture of the current culture to be disregarded and the 12 time format to be used. We logged the issue in our Public Issue Tracker System where you can track its status.

    I updated your Telerik points for bringing this to our attention. We will do our best to have a permanent fix for it as soon as possible. In the meanwhile you can set the FormatString of the GroupTickLine/MajorTickLine to the desired format, more details could be found here. I created and attached a sample project for you that shows the described approach, hope this is helpful.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Simon
    Simon avatar
    2 posts
    Member since:
    Jul 2013

    Posted 23 Sep 2013 Link to this post

    Thanks for your answer, i have looked at your  Sample and while it does what is described, is unfortunatly not what i can use in production. The application allows the user to zoom in and out of the gantt control which changes the visible range and visible timeruler lines dynamically based on the current scale (this is the default, unmodified gantt view behavior). using your sample code however will hard code the visible timeruler lines, so even when i am zooming out to a range of several months, 5 minute tick lines will be visible. I am looking forward for a bugfix to this control.
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 23 Sep 2013 Link to this post

    sHello,

    We will do our best to have a fix for this issue as soon as possible as we see that in some scenarios hard coding a FormatString is not very suitable.

    Again we apologize for any inconvenience that this may be causing.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top