Create custom cell type based on combo box cell type

Posted by: apurushotaman on 13 February 2020, 11:03 am EST

  • Posted 13 February 2020, 11:03 am EST

    Hello,

    Is it possible to create a custom cell type based off of combo box cell type (possible inherit it)? If its possible to iniherit combo box cell type, how can i go about customizing the drop down of a combo box?

    I am loading a combo box with an ajax call and would like to show a loading indicator in the drop down until the ajax is returned.

    I plan to do this as follows

    
    cell.cellType(new customComboBoxCellType());
    $ajax({
    	//
    	success(data) {
    				cell.cellType(new GC.Spread.Sheets.CellTypes.ComboBox());
    				cell.CellType.items(data);
    
    

    What I am having difficulty understanding is how to create the customComboBoxCellType and how to set the drop-down html specifically.

    Thanks in advance!

  • Posted 14 February 2020, 4:29 am EST

    Hi,

    Please refer to the following forum thread which discusses how to add Combobox/AutoComplete using the ComboBoxCellType.

    https://www.grapecity.com/forums/spread-sheets/searchable-drop-down-combo

    Hope it will help!

    If you have any further queries, please let us know we would be glad to help you.

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels