Docs
API
  • setColumnComboData(index: Number|String, data: Array)

    Update data for column type combo.
    This method is used when it requires to reset all available values for combo.

    • index- Number|String. Column order/column data index.
    • data - Array.
      New combo data.

    Example: index - String

    
    var grid = new FancyGrid({
      ...
    ...
    grid.setColumnComboData('countries', ['USA', 'UK', 'Canada', 'Germany', 'Japan', 'South Korea']);
    

    Example: index - Object

    
    var grid = new FancyGrid({
      ...
    ...
    grid.setColumnComboData('countries', [
      {value: 0, text: 'USA'}, 
      {value: 1, text: 'UK'},
      {value: 2, text: 'Canada'}
      {value: 3, text: 'Germany'},
      {value: 4, text: 'Japan'},
      {value: 5, text: 'South Korea'}
    ]);