Moving date in RadCalendarView

4 posts, 0 answers
  1. Dan
    Dan avatar
    2 posts
    Member since:
    Dec 2015

    Posted 16 Dec 2015 Link to this post

    RadCalendarView displays the date for each box in the upper right corner.

    Is there a way to move the date to the upper left corner?

    Thank You!

  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 21 Dec 2015 Link to this post

    Hi Dan,

    Thank you for your question.

    Yes, there is a way. Here it is:

    calendarView.getAdapter().setDateTextPosition(CalendarElement.TOP | CalendarElement.LEFT);

    I hope this helps.

    Regards,
    Todor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Dan
    Dan avatar
    2 posts
    Member since:
    Dec 2015

    Posted 21 Dec 2015 in reply to Todor Link to this post

    Thank you so much for that. Can I ask a follow on question?

    The inline events in the monthly calendar overlap the date in the cell since it is now on the opposite side. I don't a setter for inline event position and padding.

    How can I shift the calendar events to the right side and set the padding to not overlap the date?

    Thanks again!

  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 23 Dec 2015 Link to this post

    Hi Dan,

    This behavior in not coming out-of-the-box. If you want to display events inside the calendar cells on a custom position, you will need to provide custom event rendering. Have a look at this thread which contains a sample of custom event renderer.

    Regards,
    Todor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner