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

[Solved] How to Pass Route Value to RenderAction within Window's Content

1 Answer 63 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Craig
Top achievements
Rank 1
Craig asked on 02 Jul 2012, 03:11 PM
Hi, 
I have the following Code to open the Form to edit the record,

<%  Html.Telerik().Window()
        .Name("Window")
        .Title("(Edit)")
        .Content(() => {%>
 
           <% Html.RenderAction("Edit", "Users"); %>
         
        <%})
        .Width(700)
        .Height(350)
        .Draggable(true)
        .Modal(true)
        .Visible(false)
        .Render();
%>


This window is located in one of the Edit form, and When I Click on command Button in Grid, it opens the Window, But

I want to Pass the route Value to the Render action when Window Opens, so it should open the required record.


1 Answer, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 05 Jul 2012, 10:00 AM
Hi Craig,

Basically you can pass Route values with the different overload of the RenderAction method. 
e.g.
Html.RenderAction("action", "controller", new { test = "somevalue" });


Kind Regards,
Petur Subev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Window
Asked by
Craig
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or