Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 16, 2009 02:27
open dhtmlx forum
this.grid._col_combos has no properties

Hello I m stuck of the above error i m sending u my code please tell me what i do to solved this error

data.php
<?php
    $res=mysql_connect("localhost","root","");
    mysql_select_db("kanibrainnew1");
?>
<select name="txtShotStatus" style="border:0; font-size:10px; width:80px;">
<option>Select</option>
<?php
    $query = "SELECT shotStatus from shotStatus ORDER BY shotStatus";
    $rss1 = mysql_query($query);
    while($data2 = mysql_fetch_array($rss1)) {
    $shotStatus1 = $data2['shotStatus'];
?>
<option value="<?=$shotStatus1?>"><?=$shotStatus1?></option>
<?php } ?>
</select>





mygrid.attachEvent("onRowSelect",function(row_id,column_index){
//alert(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.getColumnCombo(3);
combo.loadXML('data.php');

}
return true;


    })
})




waiting for reply
Answer posted by Stanislav (support) on Dec 16, 2009 04:21
It seems that you have situation when some cell  in your grid has a combo type, but there is no combo collection in grid - which is seems an impossible case.
Which version of the grid and combo you are using?
If you are using latest version and issue still occurs - please provide any kind of sample or demo link where issue can be reconstructed. You can send such data directly to support@dhtmlx.com 
Answer posted on Dec 16, 2009 04:31
Hello

    I am using dhtmlxGrid v.2.1 professionaleditor build 90226
(c) DHTMLX ltd. version

Please reply me the possibilities as soon as possible

Thanks
Suraj
Answer posted by Alex (support) on Dec 16, 2009 04:42

Hello,

please provide the sample to recreate the issue to support@dhtmlx.com.

One remark - data.php should return correct xml stream: content-type should be text/xml and the xml structure should be as follows:

<complete>

<option value="...">...</option>

...

</complete>