SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / RadioButtonList type / maxRowCount Method
The row count for the radio button list.
In This Topic
    maxRowCount Method
    In This Topic
    Gets or sets the items for the radio button list's row count.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.RadioButtonList();
    var returnValue; // Type: any
    returnValue = instance.maxRowCount(value);
    function maxRowCount( 
       value : number
    ) : any;

    Parameters

    value
    The row count for the radio button list.

    Return Value

    If no value is set, returns the row count; otherwise, returns the radio button list cellType.
    Example
    //This example creates radio button list cell.
    var cellType2 = new GC.Spread.Sheets.CellTypes.RadioButtonList();
    cellType2.items([{text:"a",value:1},{text:"b",value:2},{text:"c",value:3}]);
    cellType2.maxRowCount(2);
    activeSheet.getCell(2, 2).cellType(cellType2);
    See Also