PDA

View Full Version : Calendar Panel (day of week not apear in portlet)



ajaxvador
3 Aug 2010, 5:23 AM
hi,

(control calendarpanel ext3.3) Day of week not appear in portlet (portal application) any idea ...


{
xtype:'portal',
region:'north',
cmargins:'5 5 5 5',
border:false,


items:[{
columnWidth:.33,
style:'padding:10px 0 10px 10px',
items:[{
title: 'Agenda',
layout:'fit',
autoScroll:true,
tools: tools ,
items:[ {
xtype: 'calendarpanel',
height:300,
eventStore: eventStore,
calendarStore: calendarStore,
border: false,
id: 'app-calendar',
//region: 'center',
activeItem: 1,

showNavBar: true,
showTodayText: true,
// month view
listeners: {
'eventclick': {
fn: function(vw, rec, el) {
this.showEditWindow(rec, el);
this.clearMsg();
},
scope: this
},
'eventover': function(vw, rec, el) {
//console.log('Entered evt rec='+rec.data.Title+', view='+ vw.id +', el='+el.id);
},
'eventout': function(vw, rec, el) {
//console.log('Leaving evt rec='+rec.data.Title+', view='+ vw.id +', el='+el.id);
},
'eventadd': {
fn: function(cp, rec) {
this.showMsg('Event ' + rec.data.Title + ' was added');
},
scope: this
},
'eventupdate': {
fn: function(cp, rec) {
this.showMsg('Event ' + rec.data.Title + ' was updated');
},
scope: this
},
'eventdelete': {
fn: function(cp, rec) {
this.showMsg('Event ' + rec.data.Title + ' was deleted');
},
scope: this
},
'eventcancel': {
fn: function(cp, rec) {
// edit canceled
},
scope: this
},
'viewchange': {
fn: function(p, vw, dateInfo) {
if (this.editWin) {
this.editWin.hide();
};
if (dateInfo !== null) {
// will be null when switching to the event edit form so ignore
Ext.getCmp('app-nav-picker').setValue(dateInfo.activeDate);
this.updateTitle(dateInfo.viewStart, dateInfo.viewEnd);
}
},
scope: this
},
'dayclick': {
fn: function(vw, dt, ad, el) {
this.showEditWindow({
StartDate: dt,
IsAllDay: ad
},
el);
this.clearMsg();
},
scope: this
},
'rangeselect': {
fn: function(win, dates, onComplete) {
this.showEditWindow(dates);
this.editWin.on('hide', onComplete, this, {
single: true
});
this.clearMsg();
},
scope: this
},
'eventmove': {
fn: function(vw, rec) {
rec.commit();
var time = rec.data.IsAllDay ? '': ' \\a\\t g:i a';
this.showMsg('Event ' + rec.data.Title + ' was moved to ' + rec.data.StartDate.format('F jS' + time));
},
scope: this
},
'eventresize': {
fn: function(vw, rec) {
rec.commit();
this.showMsg('Event ' + rec.data.Title + ' was updated');
},
scope: this
},
'eventdelete': {
fn: function(win, rec) {
this.eventStore.remove(rec);
this.showMsg('Event ' + rec.data.Title + ' was deleted');
},
scope: this
},
'initdrag': {
fn: function(vw) {
if (this.editWin && this.editWin.isVisible()) {
this.editWin.hide();
}
},
scope: this
}
}
}]
}]
}

21774


thanks