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

Can't get scheduler to work in updated project

4 Answers 307 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 19 Jul 2013, 01:59 PM
Hi,

I'm just trying to play with the Scheduler and I get a compile error when I try to load the page.  Here is the compiler error:
Compilation Error
 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
 
Compiler Error Message: CS0311: The type 'Shiner.ViewModels.CompanyEventVM' cannot be used as type parameter 'T' in the generic type or method 'Kendo.Mvc.UI.Fluent.WidgetFactory.Scheduler<T>()'. There is no implicit reference conversion from 'Shiner.ViewModels.CompanyEventVM' to 'Kendo.Mvc.UI.ISchedulerEvent'.
 
Source Error:
 
 
Line 19:
Line 20:
Line 21: @(Html.Kendo().Scheduler<Shiner.ViewModels.CompanyEventVM>()
Line 22:     .Name("scheduler")
Line 23:     .Date(new DateTime(2013, 6, 13))
At design time in the page, I have VS red squigly lines under the () of (bolded):  @(Html.Kendo().Scheduler<Shiner.ViewModels.CompanyEventVM>()

I have validated that the Kendo.MVC assembly is referenced correctly and has the latest version...2013.2.716.340.

I not sure where to go from here because everything else Kendo is working fine.

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 23 Jul 2013, 10:35 AM
Hi Bill,

 
From the provided information it seems that the "CompanyEventVM" model doesn't implement the "ISchedulerEvent" interface which is mandatory. I would suggest to check the "Scheduler Overview" article which provides more information about how to correctly configure the Scheduler. 


Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Bill
Top achievements
Rank 1
answered on 23 Jul 2013, 06:23 PM
Thanks! That helped a lot.  Sorry I missed that.
0
Alana
Top achievements
Rank 1
answered on 24 Jul 2013, 09:17 PM
I am kinda having the same problem. I am trying to add this scheduler code into a html project i am working on. 
Unfortunately all I see when I add in the code are 3 check boxes. for some reason the style and formatting of the
 scheduler arent showing up or linking to my page. Can I have two different style sheets in one html file?
I copied the example code exactly but still no luck. i am really new to all of this but would really appreciate
any help or advice on why its not showing up. 


thanks so much
0
Vladimir Iliev
Telerik team
answered on 25 Jul 2013, 08:36 AM
Hi Alana,

 
From the provided information it's not clear for us what is the exact issue that you are experiencing - could you please open a new support thread / forum post with more information about what exactly you are trying to achieve as well as sample code?

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Bill
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Bill
Top achievements
Rank 1
Alana
Top achievements
Rank 1
Share this question
or