Hello,
While trying to call setCanSelectCells() for a CalendarView obtained with Calendar.getMonthView() I get this error:
"Cannot change configuration property 'canSelectCells' to true now that component isc_TestCase_MyCalendar_0_monthView has been created."
Starting from issue #1 from topic http://forums.smartclient.com/forum/...selection-mode according to Isomorphic:
"Some properties can only be changed before a component has been draw()n or otherwise forced to go through initialization (listGrid.fetchData(), for example, will do it). To avoid this in your code, just avoid immediately calling addMember() on the ListGrid when all you've done is new ListGrid(); configure it first."
A CalendarView is actually a ListGrid so the same issue applies. The problem is that if you try to call that method before the calendar is draw()n the Calendar.getMonthView() returns null so the property can not be set. Should a setCanSelectCells() method be added to the class Calendar to solve this problem?
Thank you,
Tiberiu
While trying to call setCanSelectCells() for a CalendarView obtained with Calendar.getMonthView() I get this error:
"Cannot change configuration property 'canSelectCells' to true now that component isc_TestCase_MyCalendar_0_monthView has been created."
Starting from issue #1 from topic http://forums.smartclient.com/forum/...selection-mode according to Isomorphic:
"Some properties can only be changed before a component has been draw()n or otherwise forced to go through initialization (listGrid.fetchData(), for example, will do it). To avoid this in your code, just avoid immediately calling addMember() on the ListGrid when all you've done is new ListGrid(); configure it first."
A CalendarView is actually a ListGrid so the same issue applies. The problem is that if you try to call that method before the calendar is draw()n the Calendar.getMonthView() returns null so the property can not be set. Should a setCanSelectCells() method be added to the class Calendar to solve this problem?
Thank you,
Tiberiu
Comment