This is a migrated thread and some comments may be shown as answers.

how to bind data with combobox

1 Answer 129 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Quang
Top achievements
Rank 1
Quang asked on 23 May 2012, 05:03 PM
I waste a lot my time on internet just to find a tutorial bind data php with combobox, I don't know why have just a few of tutorials combobox and can't did something I want.

Someone help me please, the combobox not show any data, this is my code. Thank you for reading my topic

var pCate=new kendo.data.DataSource({
                  
                    transport:{
                        read:{
                             
                            url:"../data/product_cate.php",
                            dataType:'json'
                        }
                    }
                      
                      
                 });
 $("#cbProductCate").kendoComboBox({
                      index:-1,
                      dataTextField: 'name',
                      dataValueField: "id",
                      dataSource:pCate
                      
                  });
               

1 Answer, 1 is accepted

Sort by
0
Quang
Top achievements
Rank 1
answered on 24 May 2012, 02:14 AM
sorry I forgot declare schema:data, final it work for me
Tags
ComboBox
Asked by
Quang
Top achievements
Rank 1
Answers by
Quang
Top achievements
Rank 1
Share this question
or