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

date in the middle

2 Answers 106 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 19 Mar 2009, 06:47 PM
Hello,

I have got a DatePicker. I have got a calendar too, when I choose a date from here the date is shown in the left of a textbox.

I would like the date to be aligned in the center.

Could you help me? it can´t be difficult, but I don´t get it.

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 19 Mar 2009, 07:10 PM
Hi Patxi,

You can set a centered horizontal alignment declaratively:

<telerik:RadDateTimePicker ID="RadDateTimePicker" runat="server">
    <DateInput EnabledStyle-HorizontalAlign="Center" />
</telerik:RadDateTimePicker>


or with CSS:


.RadPicker  .riTextBox
{
        text-align: center;
}

(the CSS rule will work for all skins)

Sincerely yours,
Dimo
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Patxi
Top achievements
Rank 1
answered on 19 Mar 2009, 08:46 PM
Thank you Dimo,

Very clear and short answer. It´s already working fine :)

Hugs.
Tags
Calendar
Asked by
Patxi
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Patxi
Top achievements
Rank 1
Share this question
or