I'm creating a user control that adds a new window to the RadWindowManager. I'm trying to add a header to the window, which seems easy enough in the demo code, but I'm getting an error that says "'header' is not a member of 'Telerik.Web.UI.RadWindow'.". I'm new to jquery and Ajax controls, so I don't know if I'm missing something.
(Telerik version is 2014.3.1024.45)
ascx file -
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"RadScriptManager1"
/>
<
telerik:RadWindowManager
RenderMode
=
"Auto"
ID
=
"RadWindowManager1"
ShowContentDuringLoad
=
"false"
VisibleStatusbar
=
"false"
ReloadOnShow
=
"True"
runat
=
"server"
EnableShadow
=
"true"
EnableViewState
=
"False"
>
<
Shortcuts
>
<
telerik:WindowShortcut
CommandName
=
"RestoreAll"
Shortcut
=
"Alt+F3"
></
telerik:WindowShortcut
>
<
telerik:WindowShortcut
CommandName
=
"Tile"
Shortcut
=
"Alt+F6"
></
telerik:WindowShortcut
>
<
telerik:WindowShortcut
CommandName
=
"CloseAll"
Shortcut
=
"Esc"
></
telerik:WindowShortcut
>
</
Shortcuts
>
</
telerik:RadWindowManager
>
Code Behind -
Public Sub ShowModalDialog(ID As String, URL As String)
Dim newWindow As New RadWindow()
'NavigateUrl to be chosen dynamically.
newWindow.ID = ID
newWindow.NavigateUrl = URL
newWindow.VisibleOnPageLoad = True
newWindow.OnClientClose = "OnClientClose"
newWindow.Modal = True
newWindow.header = "Test"
newWindow.Shortcuts.Add(NewWindowShortcut("Maximize", "Ctrl+F2"))
newWindow.Shortcuts.Add(NewWindowShortcut("Restore", "Ctrl+F3"))
newWindow.Shortcuts.Add(NewWindowShortcut("Minimize", "Ctrl+F8"))
RegisterControl(ID)
ModalWindow.Windows.Add(newWindow)
End Sub