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

Grouping in MonthView Scheduler ASP.NET MVC

5 Answers 13 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
K.Ramadan
Top achievements
Rank 2
Veteran
K.Ramadan asked on 09 Mar 2020, 12:33 PM

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

Sort by
0
K.Ramadan
Top achievements
Rank 2
Veteran
answered on 09 Mar 2020, 01:09 PM

I mean every "room" should be stretched to the end of the month 

0
Dimitar
Telerik team
answered on 11 Mar 2020, 07:08 AM

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

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
0
K.Ramadan
Top achievements
Rank 2
Veteran
answered on 11 Mar 2020, 07:40 AM

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 .. :-)

 
0
K.Ramadan
Top achievements
Rank 2
Veteran
answered on 11 Mar 2020, 09:38 AM

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();
0
Dimitar
Telerik team
answered on 11 Mar 2020, 11:24 AM

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

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
Scheduler
Asked by
K.Ramadan
Top achievements
Rank 2
Veteran
Answers by
K.Ramadan
Top achievements
Rank 2
Veteran
Dimitar
Telerik team
Share this question
or