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

How do you set the input Width?

5 Answers 71 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Veteran
Jonathan asked on 03 Jul 2018, 01:28 AM

Hi..

How do you set the width of the Calendar - the Input ?

I'd like the Input to be 100px  and the 'popup' to fit in the 100px

 

thx in advance

 

 

  
             <td>
                   <telerik:RadDatePicker  rendermode="Lightweight"  Skin="Flom" EnableEmbeddedSkins="false" runat="server" ID="RadDatePickerFROM" AutoPostBack="true" Width="100px" Calendar-ShowRowHeaders="false" Calendar-ShowOtherMonthsDays="false" DateInput-EmptyMessage="Start Date" OnSelectedDateChanged="RadDatePickerFROM_SelectedDateChanged">
                     <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true">
                     </Calendar>
                  </telerik:RadDatePicker>
             </td>

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Jul 2018, 11:49 AM
Hi,

You can control the dimensions of the dropdown popup using the font size CSS setting as shown below:

<style>
    .RadCalendarPopup.RadCalendarPopupShadows {
        font-size: 10px !important;
    }
</style>

Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jonathan
Top achievements
Rank 1
Veteran
answered on 03 Jul 2018, 11:59 AM

Hi..
that seems to set the dropdown font.

How do make the input text box smaller

thx again

0
Jonathan
Top achievements
Rank 1
Veteran
answered on 03 Jul 2018, 12:00 PM

That seems to set the dropdown width.

How do I set the input text box width.

thx again

0
Accepted
Rumen
Telerik team
answered on 03 Jul 2018, 12:24 PM
Hi,

Set the width property of the DateInput inner-tag as shown below:

<telerik:RadDatePicker RenderMode="Lightweight" Skin="Flom" EnableEmbeddedSkins="false" runat="server" ID="RadDatePickerFROM" AutoPostBack="true" Width="100px" Calendar-ShowRowHeaders="false" Calendar-ShowOtherMonthsDays="false" DateInput-EmptyMessage="Start Date" _OnSelectedDateChanged="RadDatePickerFROM_SelectedDateChanged">
    <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true">
    </Calendar>
    <DateInput Width="100px"></DateInput>
</telerik:RadDatePicker>


Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jonathan
Top achievements
Rank 1
Veteran
answered on 03 Jul 2018, 12:33 PM
thx!  that worked
Tags
Calendar
Asked by
Jonathan
Top achievements
Rank 1
Veteran
Answers by
Rumen
Telerik team
Jonathan
Top achievements
Rank 1
Veteran
Share this question
or