Crid editorType select and combobox issue


#1
testGrid = new dhx.Grid(null, {
	selection: "row"
	, tooltip: false
	, columns: [
		{id:"TEST_1", header:[{text:"COMBO TEST"}], editorType: "combobox", editable:true
			, options: [
				{value:"COMBO-A", id:"AA"}
				, {value:"COMBO-B", id:"BB"}
				, {value:"COMBO-C", id:"CC"}
			]
		}
		, {id:"TEST_2", header:[{text:"SELECT TEST"}], editorType: "select", editable:true
			, options: [
				{value:"A1", content:"SELECT-A"}
				, {value:"B1", content:"SELECT-B"}
				, {value:"C1", content:"SELECT-C"}
			]
		}
	]
	, data : [
		{TEST_1:"BB", TEST_2:"C1"}
	]
});

When the above source roll testGrid is drawn, “COMBO-B” is shown in the TEST_1 column and “SELECT-C” is shown in the TEST_2 column. I want to show the value of “content” in the TEST_2 column.
And I want to make the edit state with a single click rather than a row double click.
It worked in version 5, but I wonder if it is impossible in version 7 or if there is a way.
If possible, please provide an example source.When the above source roll testGrid is drawn, “COMBO-B” is shown in the TEST_1 column and “SELECT-C” is shown in the TEST_2 column. I want to show the value of “content” in the TEST_2 column.
And I want to make the edit state with a single click rather than a row double click.
It worked in version 5, but I wonder if it is impossible in version 7 or if there is a way.
If possible, please provide an example source.


#2

Please, try to use the cellClick event together with the editCell() method:
https://docs.dhtmlx.com/suite/grid/api/grid_cellclick_event/
https://docs.dhtmlx.com/suite/grid/api/grid_editcell_method/
Something like:
https://snippet.dhtmlx.com/j2newgop