This question is locked. New answers and comments are not allowed.
HI,
How do I set the content of a window using Razor syntax??
-- this syntax causes an error, but its how I expect it to work.
And/or can I set the content html of the window from javascript?
UPDATE:
I am now creating a new Telerik window in JS and setting the content. But, the window is off the bottom of the screen, how can I center it in javascript?
preview.center() throws an error...
Ideally I'd like the location to be top center ... if poss?
How do I set the content of a window using Razor syntax??
@(Html.Telerik().Window().Name("Preview").Visible(false).Width(780)
.Content(() => {
@Model.PreviewContent
})
.Title("Preview").Modal(true)
)-- this syntax causes an error, but its how I expect it to work.
And/or can I set the content html of the window from javascript?
UPDATE:
I am now creating a new Telerik window in JS and setting the content. But, the window is off the bottom of the screen, how can I center it in javascript?
function ShowPreviewWindow(content) { var preview = $.telerik.window.create({ title: "Preview", html: content, width: "800", modal: true, resizable: true }); preview.center(); }preview.center() throws an error...
Ideally I'd like the location to be top center ... if poss?