-
Notifications
You must be signed in to change notification settings - Fork 8
HowToDisableModel
iraichi edited this page Apr 23, 2015
·
18 revisions
The following instructions apply to List Controllers.
Normally the function bar of a List Controller shows the following buttons:

if you set IsReadOnly: True at model level the standard "insert", "Edit" and "Delete" buttons will disappear in all List Controller using that model.
In case you have different Views using the same Model and you want to allow different operations, than set the node Controller/GridPanelController in the view:
For example. You can allow just Viewing and Inserting records with the following code:
Controller: List
.....
GridPanelController:
AllowViewing: True
PreventDeleting: True
PreventAdding: True
PreventEditing: False
you will obtain the following situation:

- Kitto at a glance
- Getting started
- Setup
-
Basic concepts
- Basic Materials
- Controllers
- Panel-Based
- [List] (List)
- [Form] (Form)
- [GridPanel] (GridPanel)
- [ChartPanel] (ChartPanel)
- [Tool Controllers] (Tool)
- [Login] (Login)
- [Logout] (Logout)
- [ChangePassword] (ChangePassword)
- Features
- Examples
- Developer's guide
- Library reference
- Frequently Asked Questions
- Kitto tips & tricks and how-tos
- Other information
- Kitto Enterprise