RadTimeView Horizontal Alignment Problem

2 posts, 0 answers
  1. Jeanne
    Jeanne avatar
    58 posts
    Member since:
    Sep 2011

    Posted 03 Jul 2013 Link to this post

    I have a RadTimeView with TimeFormat="h:mm tt" and I cannot get the times in the popup to align right. I have added HorizontalAlign=Right" and TimeStyle-HorizontalAlign="Right" and the times are still centered. Looking at the generated html, it appears that the problem is because the anchor elements in the table cells (the table cells DO have align="right" on them) are getting the css attributes display:block and text-align:center applied (from .RadCalendarTimeView style). Since the anchor elements display as block, they are taking the full width of the table cell, so the center align attribute is overriding the cell attribute. When HorizontalAlign="Right" is specified, it should be applied to the a element as well.

  2. Eyup
    Eyup avatar
    3320 posts

    Posted 08 Jul 2013 Link to this post

    Hi Jeanne,

    Please try the following approach to work around the issue:
    <style type="text/css">
        table.RadCalendarTimeView a
            text-align: right;

    Hope this helps.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top