I just remembered that I had made a decent Ext based calendar (extending Ext.Panel).
You can view a demo of it here.
The calendar supports loading data through a Ext.data.Store, d’n'd of timespans, events for handling d’n'd, editing etc.
Because I want to be like the cool kids too
I just remembered that I had made a decent Ext based calendar (extending Ext.Panel).
You can view a demo of it here.
The calendar supports loading data through a Ext.data.Store, d’n'd of timespans, events for handling d’n'd, editing etc.
Could you please send me a demo source?
Thank you
Email: swjtusufeng # gmail.com
Just grab the the one in the demo, it should be pretty easy.
ok~thank you
Another QS:
for (var _steps = 0; _steps < _totalSteps; _steps++) {}
Iadd the IF to render the Calendar to just ‘morning and afternoon’
if(_steps ==12 && _steps==0){}
but error happen~
Could you please help me?
It has some css problems with the ie.
I cannot find where loading from Ext.data.Store is in the source code. Does the Ext.data.Store data have to be parsed into the timespan(data:) format?
Hm, I was sure it used a store, maybe I did that with a later version somewhere else..
Anywhat, it should be quite easy to extend it with a store. Just bind the deleteTimespan, updateTimespan etc to the proper events and vice-versa
How do you recommend showing existing data on start-up?
I expected the following code to do so, on startup – but it is not shown when the app loads.
var ts = {
data: {Id: 1, StartTime: new Date('2010-01-22 11:00:00.0'), EndTime: new Date('2010-01-22 16:00:00.0')}
};
_cal.insertTimespan(ts);
Any suggestions?
Is actually right there in the comments,
<pre>
_cal.loadData([{Text:"sampleevent",Id:24234,StartTime:_startTime,EndTime:_endTime}]);
</pre>
I had tried that and got a 'u is null' error – debugging isn't that great with ext! This seems to happen when it enters the:
ts.view = Ext.DomHelper.append(_tableContainerCell, {
tag: "div",
cls: "Overlay"
, true);
ts.view.dom.ts = ts;
of the _insertTimespan function.