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

Calander is showing on the right, but should be showing on the left.

2 Answers 36 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Lex
Top achievements
Rank 1
Lex asked on 12 May 2014, 02:43 PM
I have set up a Rad DatePicker, with a Calendar and a DateInput field, however I want the date input field to show on the left of the calendar, currently the Calendar is showing to the right of the dateInput control. Is there any simple way of doing this?


<telerik:RadDatePicker ID="dpDate" runat="server" Skin="TestSkin" EnableEmbeddedSkins="false">
                            <DateInput ID="diInput" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" runat="server" Enabled="false"
                                DisabledStyle-ForeColor="Black" BorderStyle="None" BackColor="White">
                            </DateInput>
                            <Calendar ID="calDate" ShowRowHeaders="false" runat="server" EnableEmbeddedSkins="false"
                                Skin="TestSkin">
                                <ClientEvents OnDateSelecting="DateSelected" />
                                <SpecialDays>
                                    <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
                                </SpecialDays>
                            </Calendar>
                        </telerik:RadDatePicker>

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 13 May 2014, 03:51 AM
Hi Lex,

Please try the following CSS which works fine at my end.

ASPX:
<telerik:RadDatePicker ID="dpDate" runat="server" Skin="TestSkin" EnableEmbeddedSkins="false">
    <DateInput ID="diInput" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" runat="server"  DisabledStyle-ForeColor="Black" BorderStyle="None" BackColor="White">
    </DateInput>
    <Calendar ID="calDate" ShowRowHeaders="true" runat="server" CssClass="change-position"
        EnableEmbeddedSkins="false" Skin="TestSkin">
        <SpecialDays>
            <telerik:RadCalendarDay Repeatable="Today" Date="" />
        </SpecialDays>
    </Calendar>
</telerik:RadDatePicker>

CSS :
<style type="text/css">
    .change-position
    {
        margin-left: 37% !important;
    }
    .rcShadBL
    {
        display: none;
    }
</style>

Let me know if you have any concern.
Thanks,
Shinu.
0
Lex
Top achievements
Rank 1
answered on 13 May 2014, 10:34 AM
Thank you very much, this got me 95% there. I just had to change some of the values slightly.
Tags
Calendar
Asked by
Lex
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Lex
Top achievements
Rank 1
Share this question
or