Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Fahad Ayub 71 posts 238 karma points
    Dec 20, 2017 @ 11:31
    Fahad Ayub

    Rendering Slider in Grid

    Hi, Is it possible to add @Html.Partial("uSkySlider") in to my Umbraco grid. I tried to create a macro and in my macro i added :


    but When I try to add macro in my grid I get error :

    Error loading Partial View script (file:

    The Umbraco log file showing following error :

    2017-12-20 11:29:54,860 [P1576/D3/T139] WARN  umbraco.macro - Error loading Partial View (file: ~/Views/MacroPartials/SlideMacro.cshtml). Exception: Umbraco.Web.Mvc.ModelBindingException: Cannot bind source type Umbraco.Web.Models.PartialViewMacroModel to model type Umbraco.Web.Models.RenderModel.
       at Umbraco.Web.Mvc.RenderModelBinder.ThrowModelBindingException(Boolean sourceContent, Boolean modelContent, Type sourceType, Type modelType)

    I am using Umbraco grid. Please help.


  • Søren Tidmand 129 posts 366 karma points
    Jan 17, 2018 @ 12:47
    Søren Tidmand

    Hi Fahad,

    It's been a while since you posted your question, but I'll post an answer anyway.

    Why are you trying to run a partial from inside you macro partial view?

    To me the most logical solution would be to move your code from the uSkySlider partial into the Macro Partial View of the macro.

    There's a very good guide to how to insert a slider into the grid which might explain stuff that you already know, but still:

    And the SimpleSlider mentioned in the article is available here:

    I hope that this will help you solve the issue.


Please Sign in or register to post replies

Write your reply to: