DhtmlxForm support this or not ???
or only DhtmlxTree i need to use ???
DhtmlxForm support this or not ???
or only DhtmlxTree i need to use ???
Hello,
Unfortunately select does not support optgroups for now.
you may something advise for my solution ?
for example you have form struct like this:
var formData = [{type: "select", name: "test", label: "Account type", options:[...]}];
var myForm = new dhtmlXForm("parentId", formData);
then you can add some custom code and get select object, and add opt groups directly to it:
dhtmlXForm.prototype.items.select.getSelect=function(item){
return item.childNodes[1].childNodes[0];
};
var selectObj = myForm.doWithItem("test","getSelect");
working example would be great full if not difficult
Thank’s it’s great and what i needed for my task
and for inspiration …
Hello
I also need optgroup support in dhtmlxForm 3.0.
It would be very useful if optgroup will part of dhtmlxForm 3.0 Final Version
@++
JC