This question is locked. New answers and comments are not allowed.
Hi everyone,
I've gone through a lot of google searches and forum posts and I know the editor templates work great for the form content but is it possible to take control over the actual window title and the command buttons that automatically appear in the bottom of the form?
What I want to do is upon edit of a record change the window title to display a record specific string of text and in some cases I want a user to be able to view the popup window but not be able to click insert or save.
For the title something along the lines of "Client: James Smith" where the name comes from the grid record being edited.
For the buttons is there a way to either take full control or do something like buttons.save(s => s.enabled(false))?
Here's a snippet of what i am currently working with. This works well but I want to still use templates and take a bit more control over the rest of the displayed window.
If anyone needs any more detail please let me know as I think i've hit a mental roadblock trying to figure out how to handle this elegantly.
Cheers
I've gone through a lot of google searches and forum posts and I know the editor templates work great for the form content but is it possible to take control over the actual window title and the command buttons that automatically appear in the bottom of the form?
What I want to do is upon edit of a record change the window title to display a record specific string of text and in some cases I want a user to be able to view the popup window but not be able to click insert or save.
For the title something along the lines of "Client: James Smith" where the name comes from the grid record being edited.
For the buttons is there a way to either take full control or do something like buttons.save(s => s.enabled(false))?
Here's a snippet of what i am currently working with. This works well but I want to still use templates and take a bit more control over the rest of the displayed window.
.Editable(e => e .Mode(GridEditMode.PopUp) .TemplateName("Form_EmailRouting") .Window(w => w .Name("EmailRoutingGridPopUp") .Resizable(r => r.Enabled(false)) .Buttons(b => b.Close()) .Modal(true) .Visible(false) .Render() ))If anyone needs any more detail please let me know as I think i've hit a mental roadblock trying to figure out how to handle this elegantly.
Cheers