Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Phil on Sep 23, 2009 02:31
open dhtmlx forum
Combo items

Hi,

In a dhtmlxGrid i have 2 columns with co excelltype. I populate these combo as this :

loader=dhtmlxAjax.getSync("Chargepermanent.php?Service="+id);
    tot=loader.doXPath("//Permanent").length;
    combo1 = grillepermanence.getCombo(2);
    combo2 = grillepermanence.getCombo(3);
    combo1.clear();
    combo2.clear();
combo1.put("-1","A déterminer");
combo2.put("-1","A déterminer");
    for(var i = 0; i<tot; i++){
     combo1.put(loader.doXPath("//Value")[i].firstChild.nodeValue,loader.doXPath("//Nom")[i].firstChild.nodeValue);
     combo2.put(loader.doXPath("//Value")[i].firstChild.nodeValue,loader.doXPath("//Nom")[i].firstChild.nodeValue);
    }

I want some items to be unselectable (disabled item).

Is it possible ?

Thanks
Answer posted by dhxSupport on Sep 23, 2009 03:50
Unfortunately "co" eXcell type hasn't such functionality. But you can implement any custom eXcell type you need. Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:toc_custom_excell_creation