Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 14, 2007 14:25
open dhtmlx forum
As you described in your dhtmlXGrid-Guide, I created a new Cell Editor. This is working well, but I ha...

As you described in your dhtmlXGrid-Guide, I created a new Cell Editor.

This is working well, but I have got one problem:

The eventhandler, which is set with grid.setOnCellChanged(), is not be called anymore, when something is changed with this new cell-editor.

I tried everything, which seems usefull:

- Overwirting the function wasChanged()

- Setting the value wasChanged to true

But I got no positive result.

I suppose, hat there is another trick, to tell the handler that something has changed in this cell.
Answer posted on Mar 14, 2007 14:25

To make you editor working with global  setOnCellChanged editor, you need to use setCValue method instead of manual setting of innerHTML in setValue method.

You can check in existing dhtmlxGridCell.js file for any excell type.

dhtmlXGridCellObject.prototype.setValue = function(val){

            ...

   this.setCValue(val);

}

 

The setValue works in next way

            first parameter - HTML representation of value

            second parameter (optional) - real value

 This call need to be done, only if you need onCellChanged handler, and can be ignored in other situations

Answer posted by Stanislav (Support) on Dec 04, 2014 20:47

Not much can be said in addition to the reply above, but you also can check ui web application and open source mobile website builder and find out what we have probably missed in our explanation.