PDA

View Full Version : [CLOSED] [2.0] Calendar in readonly mode.



FVNoel
Sep 13, 2012, 3:32 PM
Hello, I'm trying to attain the same as in this post:
http://forums.ext.net/showthread.php?11235-Calendar-in-readonly-mode

On Ext.Net 2.0

But in this line:


var monthView = Ext.getCmp(calendarId + '-month'),
weekBdView = Ext.getCmp(calendarId + '-week-bd'),
dayBdView = Ext.getCmp(calendarId + '-day-bd'), ...


monthView, weekBdView and dayBdView are getting null values.

I tried also with:


Ext.getCmp(calendarId + '-month')


and


Ext.getCmp('App.' + calendarId + '-month')


but got the same result.

Also


Ext.getCmp(calendarId)


returns null.

Daniil
Sep 13, 2012, 8:58 PM
Hi,

I am able to get the views using these statements:

var monthView = Ext.getCmp(calendarId + '-month'),
weekBdView = Ext.getCmp(calendarId + '-week-bd'),
dayBdView = Ext.getCmp(calendarId + '-day-bd');



where calendarId is "CalendarPanel1".

Could you provide a sample, please?