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

[Solved] Window within a partial view

1 Answer 50 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.
Erik
Top achievements
Rank 1
Erik asked on 30 Apr 2012, 08:04 PM
I've made a partial view containing customer adress information. This partial view is used by multiple models which contains adress information. Each adress container contains multiple adresses such as work, home, other. This partial view renders a list showing all the adresses in the container. Now i've a button for adding an adress. I want to show de new adress in a modal window. When I nest the Html.Telerik().Window in a partial view i get an NullReferenceException on (i think) Html.Telerik(). I'm not sure but I think that the telerik control is Null and it can't create a Window.

Is it possible to nest a Window in a partial view. If yes, then can somebody tell me how? What do i need to do in the partial view, in the parent view?

With kind regards,

1 Answer, 1 is accepted

Sort by
0
Erik
Top achievements
Rank 1
answered on 01 May 2012, 08:46 PM
Problem solved. Moved the Telerik.ScripRegistar to the main _Layout.cshtml. Removed all extra references to the scriptRegistar() and it worked.
Tags
Window
Asked by
Erik
Top achievements
Rank 1
Answers by
Erik
Top achievements
Rank 1
Share this question
or