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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    The datepicker fields will fire a change event once the value in that field has changed.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •