custom column type not working

I am trying to create a custom column type for use in a treegrid column. The custom type should be an input button. I am using the following code:

function eXcell_action_button(cell) { //the eXcell name is defined here
      if (cell) {                // the default pattern, just copy it
        this.cell = cell;
        this.grid = this.cell.parentNode.grid;
      }
      this.edit = function() {} //read-only cell doesn't have edit method
      this.isDisabled = function() {return true;} // the cell is read-only, so it's always in the disabled state
      this.setValue = function(val) {
        console.log('eXcell_action_button(): Value = ', val);
        this.setCValue("<input type='button' value='"+val+"'>",val);
      }
      this.getValue = function(val) {
        return this.cell;
      }
    }
    eXcell_action_button.prototype = new eXcell;// nests all other methods from the base class
   
    var appLayout = new dhtmlXLayoutObject({
        parent: document.body,
        pattern: "2U",
    });

    ec2Grid = appLayout.cells('a').attachGrid();
   ec2Grid.setColTypes("tree,action_button,coro,rotxt");
    ec2Grid.init();

I have been researching and trying to get this to work for two days now. Any hlep would be greatly appreciated.

Thanks,

Daryl

Unfortunately the problem cannot be reconstructed. Your code works well for me locally.
snippet.dhtmlx.com/7ac572abc
If the problem still occurs for you please provide with a complete demo or share with a demo link, where the problem can be reproduced.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxi … pport.html

I’m facing same issue.
Things i want confirm.

  1. Do i need to add any dependency other than dhtmlx.js? Im using standard version.
  2. Where should i place my custom formatter code?
  1. Do i need to add any dependency other than dhtmlx.js? Im using standard version.
    no
  2. Where should i place my custom formatter code?
    it is not critical. The main thing is that the function is available for access. Here is the example:
    dhtmlx.com/docs/products/dhtmlx … ormat.html