Using telerik window to display data from another view?http://forums.asp.net/t/1793844.aspx/1?Using+telerik+window+to+display+data+from+another+view+Tue, 17 Apr 2012 16:32:11 -040017938444936983http://forums.asp.net/p/1793844/4936983.aspx/1?Using+telerik+window+to+display+data+from+another+view+Using telerik window to display data from another view? <p>Has anyone tried this and know if it's possible or not?</p> <p>What I want to do is when they are on the Index page where they can view all the content they are able to click &quot;Edit&quot;, when they do the telerik window will pop up with the view from /edit/1 inside of it so they can edit it.</p> 2012-04-17T15:10:05-04:004936997http://forums.asp.net/p/1793844/4936997.aspx/1?Re+Using+telerik+window+to+display+data+from+another+view+Re: Using telerik window to display data from another view? <p>window.open(...)</p> 2012-04-17T15:16:01-04:004937138http://forums.asp.net/p/1793844/4937138.aspx/1?Re+Using+telerik+window+to+display+data+from+another+view+Re: Using telerik window to display data from another view? <p>You can do this. The telerik window extension allows you to pull data from an external page.</p> <p>See the following:<br> <a href="http://demos.telerik.com/aspnet-mvc/razor/window/loadingexternalpage">http://demos.telerik.com/aspnet-mvc/razor/window/loadingexternalpage</a>&nbsp;</p> <p>In your case you would load the content from an action method like so:<br> &nbsp;</p> <pre class="prettyprint">@{ Html.Telerik().Window() .Name(&quot;Window&quot;) .LoadContentFrom(&quot;Edit&quot;, &quot;Controller&quot;) .Render(); }</pre> <p>However, to get it to to render a specific edit page you have to pass in a parameter. In that case you would want to use client side events<br> <a href="http://demos.telerik.com/aspnet-mvc/razor/window/clientsideapi">http://demos.telerik.com/aspnet-mvc/razor/window/clientsideapi</a></p> <p><a href="http://demos.telerik.com/aspnet-mvc/razor/window/clientsideapi"></a>Have you considered using a grid to show your data? Take a look at this example &nbsp;(change the edit mode to popup and hit the apply button)<br> <a href="http://demos.telerik.com/aspnet-mvc/razor/Grid/EditingAjax?theme=vista">http://demos.telerik.com/aspnet-mvc/razor/Grid/EditingAjax?theme=vista</a></p> <p><a href="http://demos.telerik.com/aspnet-mvc/razor/Grid/EditingAjax?theme=vista"></a>it uses a telerik grid, but the edit button pops up the edit form in a telerik window.&nbsp;</p> 2012-04-17T16:32:11-04:00