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

[Solved] passing info to window.opener

1 Answer 84 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.
Ufuk ÇOBAN
Top achievements
Rank 1
Ufuk ÇOBAN asked on 23 Apr 2012, 09:00 AM
i have an MVC edit page. it has an image field. to change this image i prepared an image list page. i open this "image list page" by telerik window component. i want to pass selected image id info to the opener page. how can i do this?

1 Answer, 1 is accepted

Sort by
0
Ufuk ÇOBAN
Top achievements
Rank 1
answered on 25 Apr 2012, 08:12 AM
window.opener did not worked because telerik window is like floating div. window.parent worked. i get $ is not defined errors.

how can i use jquery in my window?
is it possible to create window when i click somewhere? with following code it generates window and make it invisible state.

i added following code once just in my layout file.

@(Html.Telerik().ScriptRegistrar().Globalization(true).DefaultGroup(group => group.Combined(true).Compress(true)))

i use window like that;

@{ Html.Telerik().Window()
        .Name("ImageWindow")
        .Title("Telerik Window for ASP.NET MVC")
        .Visible(false)
        .Draggable(false)
        .Resizable(resizing => resizing
            .Enabled(false)
            .MinHeight(250)
            .MinWidth(250)
            .MaxHeight(500)
            .MaxWidth(500)
        )
        .Modal(true)
        .Buttons(b => b.Maximize().Close())
        .LoadContentFrom("http://localhost/xxx/Image/SelectList")
        .Width(300)
        .Height(300)
        .Render();
}
Tags
Window
Asked by
Ufuk ÇOBAN
Top achievements
Rank 1
Answers by
Ufuk ÇOBAN
Top achievements
Rank 1
Share this question
or