Dear support,
I’m facing a problem with “enableRadiobuttons” functionnality.
We are using the Pro / enterprise edition ( I can give key or N� if necessary), and I though first that I was unable to use this functionnality because I was testing on Free version first.
I wan’t to set up some items of a grid as RadioButtons, and let the others as CheckBoxes, but whatever I try, I have the error message telling me that this functionnality is not available forthe object.
For the moment, I have something like:
"
tree=DHX_Layout_Cell.attachTree();
tree.setImagePath(“some_valid_path”);
tree.enableCheckBoxes(1);
tree.setDataMode(“xml”);
tree.loadXMLString(myfunc(),
function(){
tree.enableRadiobuttons(true, “item0”);
tree.enableRadiobuttons(true, “item4”);
});
//etc …
"
But whatever I try with “enableRadiobuttons”, It’s not working.
Thanks for your help.
Best Regards
Vinc.
Hello,
please check that you use files from the PRO package.
The possible reason for the issue is incorrect case of the letter “B” in the method name. And moreover please check the order of arguments - the first should be item id:
tree.enableRadioButtons(‘item0’,true);
Please, take a look at the sample in the tree package: dhtmlxTree/samples/02_checkboxes/02_pro_list_radio.html ( dhtmlx.com/docs/products/dht … radio.html )