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

[Solved] View Not Load In Window

1 Answer 110 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.
Nate
Top achievements
Rank 1
Nate asked on 12 May 2011, 05:26 PM

Why doesnt this LoadContentForm load my view into the popup window?
I have the action and controller specified. Is there another way to do this?

@{ Html.Telerik().Window()

.Name(

 

"Window")

 

 

.LoadContentFrom(

 

"Index","Wizard")

 

 

.Title(

 

"Wizard")

 

 

.Width(400)

 

.Draggable(

 

true)

 

 

.Modal(

 

true)

 

 

.Visible(

 

false)

 

 

.Render();}

1 Answer, 1 is accepted

Sort by
0
Nate
Top achievements
Rank 1
answered on 13 May 2011, 03:05 PM
Answer: The serverside call to the view simply does not work but you can call it client side which works fine.

 

 

 

 

 

 

var window = $("#Window").data("tWindow");

 

 

window.ajaxRequest(

 

 

"Home/Index/");

 

 

window.center().open();

Tags
Window
Asked by
Nate
Top achievements
Rank 1
Answers by
Nate
Top achievements
Rank 1
Share this question
or