Professional > Interview scripting > Writing interview scripts > Page layout facilities > Templates > Grid templates > Should I use a grid template?
 
Should I use a grid template?
Support for grid templates is primarily aimed at companies who have been using UNICOM Intelligence Interviewer - Server prior to version 3.0. It allows them to continue to use their existing templates rather than having to update their scripts to use the new methods provided by the Interview Object Model. The notes in this section provide some guidance on which grid template facilities are supported in interview scripting for UNICOM Intelligence Interviewer - Server 3.0 and later, and will be useful not only for scriptwriters moving from earlier versions but also to newer users who might want to consider using grid templates for some of their projects.
Grid templates are not applied to grids that are part of compound questions.
Grid templates work only if the loop contains simple questions all at one level. They do not work with nested loops.
You cannot set styles for the top left cell of the grid (this applies to the Interview Object Model too).
The altBodyRow styles are applied only if Orientation is Row; altBodyCol styles are applied only if Orientation is Column.
The colWidths style for defining column widths is not supported.
Styles set using the Interview Object Model have precedence over styles defined in a grid template.
The grid template style information is applied to the Player XML before the page is rendered.
The following table shows the relationship between grid template styles and grid styles in the Interview Object Model.
Grid template style
Interview Object Model style
Cell styles
 
align
Align
height
Cell.Height
nowrap
Cell.Wrap. Note that the logic is inverted. For more information, see Wrapping text in cells.
valign
VerticalAlign
width
Cell.Width
bgColor
Cell.BgColor
font, fontFace
Font.Family
font, fontPoint
Font.Size. Grid templates use 1-7 for the font size, whereas the Interview Object Model uses units.
font, fontEffects
FontEffects.IsEffect. Not all the font effects can be supported.
font, fontColor
Color
font, fontStyle
Font.IsStyle. The Interview Object Model uses IsBold and IsItalic for bold and italic settings
Table styles
 
align
Align
borderSize
Cell.BorderWidth
cellPadding
No corresponding option. You can set the padding for every cell, although this is not very efficient.
cellSpacing
No corresponding option.
width
Width
Header style
 
repeat
Cell.RepeatHeader. Only header rows can be repeated.
See also
Grid templates