Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MJ on Nov 09, 2008 20:37
open dhtmlx forum
combo box via json


How can I use combo box via json?

Please send me the sample.

Thanks!
Answer posted by Support on Nov 10, 2008 02:25
Combo can load data dynamically only from XML source, but you can use JSON like data adding through js commands, as
              z.addOption([{value:1,text:"1111"},
                                   {value:2,text:"2222"},
                                   {value:3,text:"3333"},
                                   {value:4,text:"4444"},
                                   {value:5,text:"5555"},
                                   {value:6,text:"6666"});