:: Home >>

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

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

Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData
dataToValue
dataToText