Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Garfield on Oct 07, 2008 00:07
open dhtmlx forum
[dhtmlxGrid]onfocus select or unselect value

I have some question about dhtmlxGrid ver.1.5.

When focus moves, is the value of the cell switched to the selection
or the unselection by the type of the cell, without creating a new cell type?
Should I create a new cell type?

difference ###
--------------------------------------------------------------
function eXcell_XXXX(cell){
    if (cell){
        this.cell = cell;
        this.grid = this.cell.parentNode.grid
    };
    this.edit = function(){
・・・

        this.obj.focus()
        this.obj.focus()
        this.obj.select()  <<<<------- ###only
    };
--------------------------------------------------------------

Thank you.
Answer posted by Support on Oct 07, 2008 02:45
Such behavior can be achieved by creation of custom excell, as in your code snippet, but for common excell types it can be done through onEditCell event usage. 
Please check 
        http://dhtmlx.com/docs/products/kb/index.shtml?cat=recent&q=5380