Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 16, 2009 05:16
open dhtmlx forum
"D is not defined"

hello, i m give setColTypes="combo" and write the code then it gives me the below error please tell me what i do


"this.grid._col_combos has no properties"

"D is not defined"

also i m using the below files and my version is v.2.1 professional editor build 90226 version i m using please reply me

<script src='codebase/dhtmlxcombo.js'></script>
<script src="codebase/dhtmlxcommon.js"></script>
<script src="../dhtmlxGrid/codebase/combo/excells/dhtmlxgrid_excell_combo.js"></script>


mygrid.setColTypes("ed,link,ro,combo,ed,ed,txt,ed,ed,co,dhxCalendarA,dhxCalendarA,ed,dhxCalendarA,dhxCalendarA,ed,ed");


mygrid.attachEvent("onRowSelect",function(row_id,column_index){
if(column_index==1)
{
var value4 = this.cells(row_id,2).getValue();
window.open("newTask.php?shotID="+value4, "width=700px,height=220px,left=150px,top=10px,resize=1,scrolling=0", "recal");
}
else if(column_index==3)
{
var combo = mygrid.getCombo(3);
combo.loadXML('data.php');
}



})
})



data.php

<?php header("Content-type:text/xml");
ini_set('max_execution_time', 7000);
$res=mysql_connect("localhost","root","");
mysql_select_db("kanibrainnew1");
print("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");

$sql = "SELECT shotStatus from shotStatus ORDER BY shotStatus";
print("<complete>");
$res = mysql_query ($sql);
if($res){
while($data2 = mysql_fetch_array($res)) {

print("<option value=\"".$data2['shotStatus']."\">");
print($data2['shotStatus']);
print("</option>");
}
}else{
echo mysql_errno().": ".mysql_error()." at ".__LINE__." line in ".__FILE__." file<br>";
}
print("</complete>");


?>

please reply me as sson as possisble
Answer posted by Alex (support) on Dec 16, 2009 05:48
Please provide the complete demo, that includes all necessary libraries and ready for testing, to support@dhtmlx.com (please mention your ref. number in the message).