This is what my monthView looks like after grouping my events.
Each Room Cell should be longer !! ( as long as the month calendar )
How to fix it, just to look normal !?
5 Answers, 1 is accepted
I mean every "room" should be stretched to the end of the month
Hello,
Scheduler's Vertical Grouping demo shows the needed configuration for this scenario. And the following Dojo snippet uses vertical grouping only by Rooms - everything looks normal. If these resources do not help you to resolve the issue, could you share your setup?
Regards,
Dimitar
Progress Telerik
Hello Dimitar,
I have TimeLine, TimeLineWeek and MonthView. So I deleted the height of the Scheduler !! :-)
Now i have to do it dynamically so that it has height if the view is month.
But anyway .. thank you .. :-)
Hello again,
so ithought it was clear how to do it, but it isn't.
I've implemented the code in the example into my project, the WebBrowserInspecter throus an error :
TypeError: widget is undefined.
my Code for this widget :
function fitWidget() {
var widget = $("#scheduler").data("kendoScheduler");
//var height = window.outerHeight;
// var height = $(window).outerHeight(); // Throws an error
// Size the widget to take the whole view.
widget.element.height(950); // Throws an error : widget is undefined
widget.resize(true);
}
$(window).resize(function() {
clearTimeout(window._resizeId);
window._resizeId = setTimeout(function() {
console.log("resize");
fitWidget();
}, 500);
});
fitWidget();
Hi,
It seems that the snippet comes from the Calculate Scheduler Height Dynamically how to article. There are two options why it is not possible to take reference to the widget. One of them is that the Scheduler is still not initialized, when the script is called. The other option is that the id of the scheduler element is not "scheduler", thus $("#scheduler") is not finding the element rendered on the page. If so, you should provide the correct Scheduler id.
Regards,
Dimitar
Progress Telerik