Class Banana.Controls.DataGridBaseListRender
Extends
Banana.Controls.CustomListControl.
- Methods borrowed from class Banana.Controls.CustomListControl:
- createControls, setData, setDataSource, setDomData
- Methods borrowed from class Banana.Controls.ListControl:
- dataSetSourceBind, getDataSource, setDataKeyField, setDataValueField
- Methods borrowed from class Banana.Controls.DataControl:
- dataSetBind, getData, unDataSetBind, updateDisplay
- Methods borrowed from class Banana.Controls.Panel:
- getTagName
- Methods borrowed from class Banana.UiControl:
- addControl, addCss, addCssClass, getAttribute, getAttributes, getClientId, getCss, getCssClass, getDimensions, getHtml, getHtmlAttributes, getState, getStyle, getStyleProperty, hasCssClass, registerEvents, removeAttribute, removeCssClass, removeState, setAttribute, setClientId, setCss, setEnabled, setState, setStyle, setVisible, switchCssClass, triggerEvent, unregisterEvents
- Methods borrowed from class Banana.Control:
- applyToChildren, bind, clear, createComponents, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload
Defined in: DataGridBaseListRender.js.
Class Detail
Banana.Controls.DataGridBaseListRender()
Creates Bases list render.
base class for list renders. a list render is responsible for rendering item renders. a listrender instance should be inserted into a datagrid.
Method Detail
adds an item to the datasource. if there is no datasource, we will set an empty datasource on the grid to make sure our items will get rendered
- Parameters:
- {mixed} data
- Returns:
- {int} position of added item
applies a unique identifier to an object not that we wont overwrite an existing identifier. this would result into inconsistency problems.
- Parameters:
- {Object} data
ensures item render from factory
- Parameters:
- itemRender
- Returns:
- Banana.Controls.DatagridItemRender
- Parameters:
- {int} index
- Returns:
- {Banana.Controls.ItemRender}