Difference between revisions of "Custom Renderers and Custom Editors"

From Lianjapedia
Jump to: navigation, search
Line 1: Line 1:
 
''Under construction''
 
''Under construction''
  
Lianja 4.1 provides the ability to specify custom renderers and custom editors in Grid and Form sections.
+
Lianja 4.1 provides the ability to specify custom renderers and custom editors for Grid and Form section cells.
  
 
In the example below there are two of the grid columns (the Chart and the Employee Details columns) that have a Custom Renderer and one (the Employee Details column) that also has a Custom Editor.
 
In the example below there are two of the grid columns (the Chart and the Employee Details columns) that have a Custom Renderer and one (the Employee Details column) that also has a Custom Editor.

Revision as of 08:18, 7 December 2017

Under construction

Lianja 4.1 provides the ability to specify custom renderers and custom editors for Grid and Form section cells.

In the example below there are two of the grid columns (the Chart and the Employee Details columns) that have a Custom Renderer and one (the Employee Details column) that also has a Custom Editor.

Bm-appinspector.png

Cell Renderer

You can customise what is displayed inside the grid cells by specifying a Display delegate in the Custom Delegates for the grid columns of a Grid Section or the FormItem of a Form Section.

When the display delegate is called, the record for that particular grid row is active so you can generate dynamic content in the context of that record.

Cell Editor

You can customise what is rendered inside the grid cells when editing by specifying an Editor delegate in the Custom Delegates for the grid columns of a SmartGrid or the FormItem cell of a FormGrid.

As with the display delegate, when the editor delegate is called, the record for that particular grid row is active so you can generate dynamic content in the context of that record. This is typically used to render a form dynamically.