Last page update: November 23, 2011
Note
paletteGrid features:
- Type: Genro form widget
- Common attributes: check the common attributes section
- GnrDomSrc_dojo_11.paletteGrid(paletteCode=None, struct=None, columns=None, structpath=None, datapath=None, **kwargs)¶
Return a paletteGrid
Parameters:
- paletteCode – create the paletteGrid nodeId (if no gridId is defined) and create the paletteGrid datapath (if no datapath is defined)
- struct – the name of the method that defines the struct
- columns – it represents the columns to be returned by the “SELECT” clause in the traditional sql query. For more information, check the columns section
- structpath – TODO
- datapath – allow to create a hierarchy of your data’s addresses into the datastore. For more information, check the datapath and the datastore pages
- kwargs –
in the kwargs you find:
- dockButton: boolean. if True, TODO
- grid_filteringGrid: the path of the grid that handle the struct. For example, in the TableHandler component the standard path for a grid is th.view.grid
- grid_filteringColumn: allow the sincronization between the choosen columns and the not choosen ones (so, if user drag a column in a grid, then this column doesn’t appear anymore in the palette)
The syntax is:
grid_filteringColumn='id:COLUMN'Where COLUMN is the name of a column TODO
- title: the title of the paletteGrid