Dynamically Loading an MVC3 Partial Page with multiple parameters as Content

2 posts, 0 answers
  1. michael
    michael avatar
    5 posts
    Member since:
    Jul 2012

    Posted 02 Aug 2012 Link to this post

    Hi,
    My Popup Issue

     @(Html.Kendo().Window()
            .Name("roleRightsWindow")
            .Width(600)
            .Height(500)
            .Title("Rights List")
            .Actions(actions => actions.Close())
            .Visible(false)
            .Modal(true)
    .LoadContentFrom("_DARoleRightsAssignedAllForPopUp", "DataAccess", new { roleId = 4, roleTypeId = 1 })
    )
    The above works just fine upon page load (for basic testing), but I want to call the same controller and action but with various values for the parameters gotten from one column in a grid and upon a button click of another column in the same grid.
    I tried to find an example but could not.
    Help would certainly be appreciated.
    Thanks,
    Murph


  2. loi
    loi avatar
    25 posts
    Member since:
    Feb 2010

    Posted 06 Aug 2012 Link to this post

    I suppose you could use the Kendo window "refresh" function.
    http://docs.kendoui.com/api/web/window#methods

    var windowObject = $("#window").data("kendoWindow");
    windowObject.refresh({
        url: "/feedbackForm",
        data: { userId: 42 }
    });
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top