×
Menu
Index

2.4.5. treegrid / modaltreegrid

 
Sometimes data can be shown as a tree with multiple levels. this way you can 'drill-down' to the row you need. This is a special grid. In BOA a treegrid and modaltreegrid are available. It can be used as a menu-item or as the action of a button or it can be used as a popup of a formelement to search for data.
 
modaltreegrid to select product categories up to 4 levels.
 
{
  "title": "Groepen",
  "endpoint": "/files/groepen",
  "pagetype": "modaltreegrid",
  "hidefilter": false,
  "position": "top",
  "groupable": false,
  "hidefilterrow": false,
  "pagesize": "lg",
  "id": "categorytree",
  "buttons": [
     "add",
     "delete",
     "edit",
     "exit",
     "print"
  ],
  "onclick": {
     "endpoint": "/files/groepen/${id}",
     "pagetype": "form",
     "buttons": [
       "add",
       "delete",
       "save",
       "list",
       "previous",
       "next",
       "exit"
     ]
  }
}
 
By using a modaltreegrid, BOA will decide what to show at startup.