i getting error when trying implement ext js pro calendar in ext js 4.2 error cannot read property 'add' of undefined in line
var startdate = extensible.date.add(ext.date.cleartime(start || new date(), true))
in abstarctcalndar.js; intail code is
ext.loader.setconfig({ enabled: true, disablecaching: false, paths: { "extensible": "extjs/src/extensible/src", "extensible.example": "extjs/src/extensible/examples" } }); ext.require([ 'extensible.calendar.data.memoryeventstore', 'extensible.calendar.calendarpanel', 'extensible.example.calendar.data.events' ]);
here simple code in app.js
ext.onready(function () { var eventstore = ext.create('extensible.calendar.data.memoryeventstore', { // defined in ../data/events.js data: [{ "id": 1001, "calendarid": 1, "startdate": "2015-03-18", "enddate": "2015-03-28", "title": "vacation", "notes": "have fun" }] }); // // example 1: simplest possible stand-alone configuration // var cal = new ext.create('extensible.calendar.calendarpanel', { eventstore: eventstore, title: 'basic calendar', width: 700, height: 500 }); ext.create('ext.form.panel', { renderto: ext.getbody(), width: 100, height : 100, border : true, frame : true, layout: 'auto',// auto 1 of layout type. items: [cal] }); });
please give sample data of event store data , calendar store data. please suggest working code both in mvc , onready
Comments
Post a Comment