+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How To Use Telerik MVC Scheduler In A Custom Siteinfinity MVC Widget

How To Use Telerik MVC Scheduler In A Custom Siteinfinity MVC Widget

3 posts, 1 answered
  1. Kevin
    Kevin avatar
    9 posts
    Registered:
    27 Oct 2014
    09 Jun 2015
    Link to this post

    I would like to use the Kendo.Mvc.Scheduler in a custom Sitefinity MVC Widget.

    In my reference assembly that provides the custom widgets, I have referenced the Kendo.Mvc library and created a Controller/Model (copying the TaskViewModel from the samples) and a View.

    In the Sitefinity project- in ResourcePackages\Bootstrap\MVC\Views\Layout\default.cshtml,   I am loading the KendoAll library with @Html.Script(ScriptRef.KendoAll, "top").   (Inline editing is turned off)

    I can see the ScriptReference being added in chrome's developer console.

     The @(Html.Kendo().Scheduler<AvianisWidgets.Mvc.Models.TaskViewModel>() (copied from the examples) tag is not being rendered.

    I guess I am confused how to render these kendo.Ui elements, am I missing a step?

     Thank you for your time!

    Kevin Howell

     

     

    Answered
  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    09 Dec 2016
    12 Jun 2015
    Link to this post
    Hello Kevin,

    In order to use the wrappers for the KendoUI widgets, please note that you need to install KendoUI for MVC in your Sitefinity project since in Sitefinity we are using Kendo UI Professional which does not include the KendoUI for MVC.

    After installing it you need to add reference to the Kendo.Mvc.UI assembly in your MVC view:

    @using Kendo.Mvc.UI

    Then you should be able to use the Kendo controls.

    In addition to this, you may also refer to the following article for more details on how to use the kendo functionality without the server-side wrappers and without the need to install the KendoUI for MVC:

    http://demos.telerik.com/kendo-ui/
     
    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Kevin
    Kevin avatar
    9 posts
    Registered:
    27 Oct 2014
    12 Jun 2015 in reply to Sabrie Nedzhip
    Link to this post

    Thank you very much, that did the trick!  Thank also for the information on how to use the kendo functionality without the KendoUI for MVC and server-side wrappers.

     

    Yours,
    Kevin Howell

3 posts, 1 answered