Results 1 to 4 of 4

Thread: Daterange binding issue

  1. #1
    Sencha Premium Member
    Join Date
    Jul 2015
    Posts
    7

    Question Answered: Daterange binding issue

    Hi,

    I've been working on date range functionality through 2 datefields and binding to the minValue and maxValue of these fields, but I've ran into a problem. I've created a Fiddle to demonstrate this.



    Steps to reproduce:
    (1) Select a date in the first datefield through the datepicker (Eg 01/21/2016)
    (2) Press the 'Reset' button
    (3) Press the datepicker icon on the second datefield and you will see that there are still grey dates which cannot be selected.

    Expected: Second datefield refreshes datepicker after the reset so that all the dates can be selected again

    To 'fix' this:
    (4) Focus on the first datefield again (Eg by clicking in it)
    (5) Now if you press on the datepicker of the second datefield, the grey dates are gone

    Is this a known bug or am I doing something wrong?


    Thanks in advance.

    Dylan van den Brink

  2. By default, the date field is configured to publish the value on the "select" and "blur" events:
    http://docs.sencha.com/extjs/5.1/5.1...uePublishEvent

    You could add "change" to this and achieve what you're after.

    Thanks!
    Joel

  3. #2
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    By default, the date field is configured to publish the value on the "select" and "blur" events:
    http://docs.sencha.com/extjs/5.1/5.1...uePublishEvent

    You could add "change" to this and achieve what you're after.

    Thanks!
    Joel

  4. #3
    Sencha Premium Member
    Join Date
    Jul 2015
    Posts
    7

    Default

    Overlooked that config, thanks a lot!

  5. #4
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Quote Originally Posted by dylanvdbrink View Post
    Overlooked that config, thanks a lot!
    Sure thing, glad it was helpful!

    Thanks
    Joel

Similar Threads

  1. Issue binding Grid to the viewmodel store
    By doddasuresh in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 14 Dec 2015, 10:17 AM
  2. Issue with HtmlEditor binding config
    By fei2012 in forum Ext 5: Bugs
    Replies: 1
    Last Post: 7 Sep 2015, 1:20 AM
  3. MVVM Binding Issue
    By Bramaram Naik Nenavath in forum Ext 5: Q&A
    Replies: 3
    Last Post: 30 Jul 2014, 8:36 AM
  4. Binding List issue?
    By Lada in forum Ext GWT: Discussion
    Replies: 10
    Last Post: 8 Dec 2010, 12:13 PM
  5. issue with NumberField and form binding
    By hbrands in forum Ext GWT: Bugs (1.x)
    Replies: 6
    Last Post: 28 Dec 2009, 8:25 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
  •