Results 1 to 5 of 5

Thread: Using Umm-Al-Qura calendar with DateField

  1. #1

    Default Using Umm-Al-Qura calendar with DateField

    Hi,

    I posted a similar question on how use a differrent (Umm-Al-Qura) calendar as datepicker in Ext 4:

    https://www.sencha.com/forum/showthr...Picker-control

    I answerer recommended to override the createPicker method of
    Ext.form.field.Picker


    Is it somehow possible to achieve this in ext 3.x (specifically 3.4)? Since Ext.form.field.Picker was introduced in Ext 4, to extend datefield somehow and 'make' it use a different calendar for datepicker?
    Any help or recommendation where to start is more than welcome.

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    You may look into the onRender method of Ext.DatePicker: http://docs.sencha.com/extjs/3.4.0/s...ethod-onRender
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3

    Default

    Hi,

    I looked into it, but the only thing I was able to do is to change day and month names. In this calendar months have different number of days, for example, first day has 30 days, not 31 like in Gregorian etc. Is there any way I can change this?

  4. #4
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    You may want to check out this library: https://github.com/talomaireeni/Umm-...a-CalendarThat should at least get you started on being able to manipulate the dates properly. Then you could re-write the calendar template to conform to those dates.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  5. #5

    Default

    Hi Tristan,

    can you be a bit more specific please? As someone very new to EXTjs, I'm not sure what to override to create a new calendar template. Can you provide maybe links to documentation of the methods / controls I should override and take a look at?

Similar Threads

  1. datefield, the calendar does not appear . . .
    By ajaxvador in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 24 Oct 2009, 4:36 AM
  2. DateField calendar out of size!
    By loke in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 2 Jul 2009, 7:00 PM
  3. DateField how to activate calendar ?
    By Speedy in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 20 May 2009, 12:05 AM
  4. how to access DateField calendar
    By Shawazi in forum Ext 2.x: Help & Discussion
    Replies: 14
    Last Post: 29 May 2008, 11:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •