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

Dynamically Loading an MVC3 Partial Page with multiple parameters as Content

1 Answer 200 Views
Window
This is a migrated thread and some comments may be shown as answers.
michael
Top achievements
Rank 1
michael asked on 02 Aug 2012, 02:07 PM
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


1 Answer, 1 is accepted

Sort by
0
loi
Top achievements
Rank 1
answered on 06 Aug 2012, 07:33 AM
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 }
});
Tags
Window
Asked by
michael
Top achievements
Rank 1
Answers by
loi
Top achievements
Rank 1
Share this question
or