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

Renderpartial inside the kendo window

1 Answer 226 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 07 Nov 2012, 12:28 PM
Hello,

I'm new to the Kendo UI stuff, so please forgive me if this is an easy one; 


I want to load the partial view inside the Kendo window, how i can do that? I tried as shown in below but it is showing the blank window. could any one please help me.

@(Html.Kendo().Window()
    .Name("windowEditPopup")
    .Title("Edit pricing")
    .Content(@<text>
        <div>
            @{
                Html.RenderPartial("EditPricingControl", Model);
            }
        </div>
        </text>)
                     .Draggable()
                     .Animation(true)
                     .Resizable()
                     .Modal(true)
                     .Width(800)
                     .Height(450)
                 )
Regards,
Ravi.

1 Answer, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 03 Jan 2013, 02:57 PM
I am also interested in doing this. Ravi, did you find anything?

The docs for the window say you can use any string or URL for the content and it will work. This thread suggests doing
.ClientTemplate(Html.Partial("PartialName").ToHtmlString())
for the list view, so I wonder if 
.Content(Html.Partial("PartialName").ToHtmlString())
would work for the window. I hope to try one such approach later today, I'll post back if I get it working reasonably well.

Any other guidance from devs or Telerik staff would be much appreciated!
Tags
Window
Asked by
Ravi
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Share this question
or