DatePicker DayNames problem

  1. #1

    DatePicker DayNames problem

    Hello, In datepicker component week's days appear only the first letter of the word.
    I have tried to write week's day in datepicker, but, it doesn't work. I want to see the whole word. For example,
    for monday it would be "Monday" instead of "M". Is there any way to achieve it?
    Click image for larger version. 

Name:	DatePicker.png 
Views:	31 
Size:	38.2 KB 
ID:	24662
  2. #2
    Hello @erickjs! Welcome to Ext.NET forums!

    The date picker component is designed to show only the first character of the weekday. Otherwise, it would just overflow the day column width.

    If you want this behavior you would have to study the component and override other methods (like the one loading the week day names) as well as the CSS styling to make the columns wide enough to fit the whole week day names.

    A first step you could do is override the function that returns the initials, in your override, but from this point on, you're on your own: we can't guarantee what it would break elsewhere.

    As for a couple directions, the function that returns the weekday initials is Ext.picker.Date.getDayInitial(value). Also you may want to increase the width in the x-datepicker-column-header CSS class to fit the longer names. Well, and so on.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    I could solve the problem. Thanks! :)
  4. #4
    Hello @erickjs!

    Glad you could fix the issue! We'd really love it if you shared how exactly you fixed it. Might be very useful for other users looking for the same functionality.

    Of course, if you don't mind sharing the trouble you had with the component!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 1
    Last Post: Jul 27, 2015, 2:48 PM
  2. Replies: 6
    Last Post: Jan 11, 2012, 10:18 AM
  3. [CLOSED] Focus problem with the datepicker and textfield
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 23, 2009, 9:39 AM
  4. DatePicker Problem
    By JLMontero in forum 1.x Help
    Replies: 0
    Last Post: Nov 11, 2008, 3:21 PM
  5. Datepicker From/To
    By srinag315 in forum 1.x Help
    Replies: 0
    Last Post: Apr 10, 2008, 10:23 PM

Tags for this Thread

Posting Permissions