Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

property 'clearFilter' of undefined on Ext.ux.TouchCalendarSimpleEvents.js:169 #39

Open
pralok opened this issue Jun 11, 2015 · 0 comments

Comments

@pralok
Copy link

pralok commented Jun 11, 2015

Hi,
I am trying to use "Ext.ux.TouchCalendarSimpleEvents" to bind events with stores but it looks like "Ext.ux.TouchCalendarSimpleEvents" is not able to detect store and throws this error :

Ext.ux.TouchCalendarSimpleEvents.js:169 Uncaught TypeError: Cannot read property 'clearFilter' of undefined

Below is the code :

Ext.setup({
onReady: function(){

    Ext.define("Event", {
        extend: "Ext.data.Model",
        config: {
            fields: [{
                name: 'event',
                type: 'string'
            }, {
                name: 'location',
                type: 'string'
            }, {
                name: 'start',
                type: 'date',
                dateFormat: 'c'
            }, {
                name: 'end',
                type: 'date',
                dateFormat: 'c'
            }]
        }
    });

    var eventStore = Ext.create('Ext.data.Store', {
        model: 'Event',
        data: [{
            event: 'Sencha Con',
            location: 'Austin, Texas',
            start: new Date(2011, 9, 23),
            end: new Date(2011, 9, 26)
        }]
    });

    var calendarView = Ext.create('Ext.ux.TouchCalendarView', {
        value: new Date(),

        store: eventStore,        
        plugins: [Ext.create('Ext.ux.TouchCalendarSimpleEvents')]
    });
}

});

Am I doing anything wrong here ? Please let me know. Thanks in advance

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant