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

[Solved] Modal Popup

4 Answers 26 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.
Jako
Top achievements
Rank 1
Jako asked on 19 Apr 2013, 01:04 PM
Hi there

I am trying to create a modal popup to request a change on a record. I tried using a fancybox, but its not working.

I see there is a Telerik popupform, but this is only one window? I would like to send the window values from the model to display and track changes:

This is what I have in my Telerik Grid using the FancyBox, coudl this be changed to have a popup window for each record?
[code]
            columns.Template( 
                    @<text>
                        @(Html.ActionLink("Change", "ImprintChange", "Secure", new RouteValueDictionary(new { imprintID = item.ImprintID, publisherID = item.PublisherID }), new Dictionary<string, object> { { "class", "fancyEdit"} }))
                    </text>);
[/code]

4 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 24 Apr 2013, 10:46 AM
Hello Jako,

If I understand you correctly you are trying to achieve something similar to this:

http://demos.telerik.com/aspnet-mvc/grid/customcolumncommand


If not please explain in more details what you tried with the Window widget and the Grid component.

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.
0
Jako
Top achievements
Rank 1
answered on 24 Apr 2013, 10:53 AM
Hi,

that is very close to what I need, all I would like it to do is open an external PartialView.

The reason for this is that I need to be able to submit changes via that modal popup.

Thanks
0
Accepted
Petur Subev
Telerik team
answered on 25 Apr 2013, 10:22 AM
Hello Jako,

You can implement it in a different way depdning on your exact needs.
For example you can configure the window to load its content from another controller/view.

@{ Html.Telerik().Window()
        .Name("Window")
        .LoadContentFrom("Action","Controller")

Or you can replace the Custom command button with a template column and perform the Ajax request on your own, this way you can pass whatever you need and display whatever you need on the success handler.

Here is similar template column question.

All the best,
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.
0
Jako
Top achievements
Rank 1
answered on 25 Apr 2013, 10:41 AM
great! Thanks a lot, that is exactly what I need.
Tags
Window
Asked by
Jako
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Jako
Top achievements
Rank 1
Share this question
or