SMART datagrid v.1 > Classes > ListCellEditor

Back  Forward

DataLudi.ListCellEditor.dropDownCount  property

The maximum number of items which will be displayed in list box. If the number of items is greater than this value, the scroll bar will be displayed. You can specify the display width of list box by dropDownWidth

Defaults to 8.

Getter
function dropDownCount(): Integer
Setter
function setDropDownCount(value: Integer)
Code -1
    var columns = [{
            name: "CustomerID",
            fieldName: "CustomerID",
            width: "120",
            editor: {
                type: "list",
                dropDownCount: 4,
                values: ["VN", "HN", "SP", "VC", "TR", "SV"],
                labels: ["VINET", "HANAR", "SUPRD", "VICTE", "THREE", "SEVEN"]
            }
        }, 
        ...
    ];
    grid.setColumns(column);
See Also
dropDownWidth
dropDownPosition
Examples
List Cell Editor