:: Documentation >>

cell template

Sets or retrieves the template used for the grid cells (cell template).

By default the grid uses AW.Templates.Text template for all cells. Assign a different cell template to display images (AW.Templates.Image, AW.Templates.ImageText), checkboxes (AW.Templates.Checkbox, AW.Templates.CheckedItem) or combo/dropdown (AW.Templates.Combo).

Syntax

 var template = obj.getCellTemplate(); 
 obj.setCellTemplate(template); 

Defined in

AW.UI.Grid

Implementation

AW.Templates.Text

Uses

cell model (redirected control model)

Example

obj.setCellTemplate(new AW.Templates.ImageText, 1);

See also

Templates: cell, text, image, image+text, combo, checkbox, checked item
Cell events: mouse events, editing

Comments

Checkboxes in only some rows Jesse (12)
Mulit line text in a cell (8)
Set input limit for grid row? Rajeem (10)
multiline cells using AW.UI.Grid Roberto Barra (2)
Displaying MultiLine HTML Jason (0)
Setting Cell Image question Carl (8)
Help: text wrap/multiline text Ben (1)
onCellClick function breaks onCellDoubleClicked??? ShepherdOwner (1)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5