Hi,
I'm my app I've a window with an action (a save button) defined. I'm trying to hide or not this action depending in a ViewData value. If I've write permissions I should see the button, else I shouldn't. How could achieve it? I could create 2 different windows or control it with jquery and hidding the button, but I think it's not the best way.
My window:
@(Html.Kendo().Window()
.Name("windowZonaExclusivas")
.Width(930)
.Resizable()
.Modal(true)
.Visible(false)
.Title("TEst")
.Draggable(true)
.Actions(actions => actions.Custom("Save").Maximize().Close())
.LoadContentFrom("EditZona", "ZonasExclusivas", new { idZona = -1 })
)
Any help will be appreciated.
Thanks in advance.