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

Dynamically Loading an MVC3 Partial Page with multiple parameters as Content

3 Answers 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
michael
Top achievements
Rank 1
michael asked on 01 Aug 2012, 10:38 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

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 02 Aug 2012, 11:21 AM

Use the refresh method

Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
michael
Top achievements
Rank 1
answered on 02 Aug 2012, 03:22 PM
Thanks for your reponse, Alex.
 I tried that but the paremeters are dynamic and retrieved from a column in a grid. There is a button on the same row of the grid that needs to display this popup window (partial view) with data based on the other column.

Can you point me to a working example where when the user clicks a k-button, the popup window opens with data based on a new set of parameters each time.

Thanks
Murph
0
Alex Gyoshev
Telerik team
answered on 03 Aug 2012, 10:36 AM
Hello Michael,

Refer to the custom command example. In the showDetails function, instead of calling wnd.content(), call wnd.refresh() with the appropriate parameters, as outlined in the documentation (which I linked to in my previous post).

All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
michael
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
michael
Top achievements
Rank 1
Share this question
or