This is a migrated thread and some comments may be shown as answers.

feature request and bad behavior report : Calendar in (currently unsupported) wall-calendar mode

1 Answer 48 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Tim R
Top achievements
Rank 1
Tim R asked on 17 Feb 2013, 12:22 PM
I've spent all the ask-for-a-feature points grandma gave me.

Let me say up front I do understand that using the Calendar as a wall-calendar in full-screen mode is unsupported at this time, but I am looking to the future, because it is a very useful data-driven wall-calendar widget. The data-value custom attribute makes it easy to bind the calendar cells to a hashed object whose keys take the form "2013/0/12", i.e. year/javascript month ordinal/day of month.

DAYNAMES
When using the Calendar in full-screen mode, like a wall-calendar, with cells capacious enough to fit snippets of text, it makes sense to use full day names (Monday, Tuesday, Wednesday...) instead of the day abbreviations, Su Mo Tu We Th Fr Sa as the column-header value.  This would be much easier if the day-names array could be integrated into the configuration. I am using the following workaround to accomplish this now.  The value in the header column's title attribute is simply substituted for the abbreviation. But the code must be executed at several points in the program, and the workaround is timing-dependent—it must be called after the calendar has been rendered—and so one must experiment with setTimeout() delays.

function changeDayHeaders() {
    $("#calendar table thead tr:eq(0) th").each(function (i, elem) {       
        var $elem = $(elem);      
        $elem.text($elem.attr('title'));
    });
}

WALL-CALENDAR MODE: OCCUPY FULL HEIGHT/WIDTH OF BROWSER WINDOW
I have the calendar expanding to occupy the full width and height of the browser window (expand height is not working in IE9 yet).
UNDESIRABLE BEHAVIOR IN ALL BROWSERS:  after navigating to a different month, the calendar becomes fixed dimension.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Feb 2013, 07:51 AM
Hello Tim,

 
I will log your request for further investigation. If other users require the same functionailty we will log it for further consideration.

As you pointed the Calendar widget is not designed to work as a "wall-calendar" and you will need to calculate height of the table element manually.

All the best,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Calendar
Asked by
Tim R
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or