このdhtmlxは比較的新しいです。私は、チェックボックスの選択に基づいて値を編集する必要があります。私はそれをやろうとしている。しかし、何とかそれは例外をスローします。 APIの可能なすべてのオプションを試しました。しかし、何も動作していないようです。セル値を取得できません - DHTMLX
var x = document.getElementById("attendance");
if (x.checked === true) {
var classGrid= getClassGrid();
classGrid.cells("present",1).setValue("Y");
alert("done");
} else {
var classGrid = getClassGrid();
classGrid.cells("present",1).setValue("N");
alert("done");
}
XMLは次のようなものです:
<row id="present"><cell class="label" image="blank.gif">Attendance </cell><cell id="leave" type="leaveType">Y</cell></row></rows>
デバッガはそのヒットたびライン、 classGrid.cells( "存在"、1).setValue(「YをTypeExceptionを投げ続けます"); または classGrid.cells( "present"、1).setValue( "N");