Results 1 to 3 of 3

Thread: Handling events on datepickerfield

  1. #1
    Sencha User demispb's Avatar
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
      0  

    Question Handling events on datepickerfield

    Hello, I want to refresh a Chart when a user select a new date in a datepickerfield...How can i handle this event ??My code are 2 datepickerfield (initial date and final date) and when a user change any date the chart will refresh with the dates stored on both datepickerfield's. Now i have a button for that action but i want that the chart refresh when the user change the date// The Chart...
    Code:
    var chartObj = new Ext.chart.Chart({ .....  });
    //The Button handler for refresh the chart:
    Code:
    handler: function() { store.loadData(Filter()); }
    //The datapickerfield's...
    Code:
    {xtype: 'datepickerfield',width : 150,name: 'dateselectorini',picker: { yearFrom: 1970 }},{xtype: 'datepickerfield',name: 'dateselectorfin',width : 150,picker: { yearFrom: 1970 }}...

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    The datepicker fields will fire a change event once the value in that field has changed.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User demispb's Avatar
    Join Date
    Dec 2011
    Posts
    5
    Vote Rating
    0
      0  

    Thumbs up Thanks

    Thanks man !!!

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
  •