SMART datagrid v.1 > Examples

[ grids ver.1.3.3]   Back  Forward

List Editor Two Values  Example

In the dropdown list box of List Editor, You can display two values corresponding to values and labels at the same time or display one of them. Display mode is specified through ListCellEditor.listItemDisplay property. 

In the examples, two arrays below will be used as values and labels. 

Code -1
["Algeria","Albania", "Chile", "Colombia", "Denmark", "Finland", "France", "India"]
["알제리","알바니아", "칠레", "콜롬비아", "덴마크", "핀란드", "프랑스", "인도"]
1. List Item Display
Grid - 1
0 rows

If specify as true, the width of the main items will be displayed the same. 

  Delimiter displayed between Main and Sub items. (Set by checking) 

2. Item & SubItem Styles

Please refer to ListEditorStyles example about how to specify the color of the list items. Like specifying the sytle of the default item through listItemStyles, you can specify the style of the sub items through subItemStyles property separately. 

Grid - 2
7 rows

   

View Source JSP 

See Also
ListCellEditor.listItemDisplay
ListCellEditor.listItemSeparator
ListCellEditor.listItemColumned
ListcellEditor.listItemGap
ListCellEditor.listItemStyles
ListCellEditor.subItemStyles
Examples
ListEditorStyles
List Editors
List Editors2
Cell Editing