I cant seem to get window to open, I get error
Unable to get property 'open' of undefined or null reference
Unable to get property 'open' of undefined or null reference
$(
"*[data-add-team]"
).click(
function
() {
var
win = $(
"#teamWindow"
)
win.show().data(
"kendoWindow"
).open().center().toFront();
})
<
div
data-menu-item
=
"teams"
>
@code
Dim TeamCreateWindows As Kendo.Mvc.UI.Window = Html.Kendo.Window() _
.Name("teamWindow") _
.Title("Create Team") _
.Actions(Sub(actions)
actions.Custom("custom")
actions.Minimize()
actions.Maximize()
actions.Close()
End Sub) _
.LoadContentFrom("create", "team", New With {.area = "contractor"}).Animation(True) _
.Content(Sub()
@<
text
>
Loading.......
</
text
>
End Sub) _
.Draggable().Resizable().Width(500)
TeamCreateWindows.Render()
End Code
@Html.Button("addTeam", "Add Team", BO.Enumerators.ButtonType.Button, BO.Enumerators.ButtonStyle.LoLight, New With {.data_add_team = True})
@Html.Partial("_Teams", Model.Contractor)
</
div
>