Can I set the DateTimeComponent in code?

3 posts, 1 answers
  1. Shantimohan
    Shantimohan avatar
    42 posts
    Member since:
    Jul 2012

    Posted 13 May 2013 Link to this post

    I have two types of data. For one it is TimeOfDay and for other it is Date. Both will not occur at the same time. How can I use single chart control to set the DateTimeComponent as desired?
  2. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 16 May 2013 Link to this post

    Hello Shantimohan,

    You just have to set the DateTimeComponent property of your date time axis. For example if your chart has a DateTimeContinuousAxis as its horizontal axis you just get the value of the chart.HorizontalAxis property and cast it to DateTimeContinuousAxis. Then the date time axis has a DateTimeComponent property that you can tweak.

    Regards,
    Victor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Shantimohan
    Shantimohan avatar
    42 posts
    Member since:
    Jul 2012

    Posted 17 May 2013 Link to this post

    Ah! how did I forget to cast?

    Thanks, it worked.
Back to Top