This is a migrated thread and some comments may be shown as answers.

RadTimeView Horizontal Alignment Problem

1 Answer 38 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jeanne
Top achievements
Rank 1
Jeanne asked on 03 Jul 2013, 06:36 PM
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.

v2012.3.1308.40

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 08 Jul 2013, 12:13 PM
Hi Jeanne,

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

Hope this helps.

Regards,
Eyup
Telerik
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.
Tags
Input
Asked by
Jeanne
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or