hello!!!
i hope someone can help me...
i fill a combobox with a variable, but when i push a button, i need to change items in smy comboBox.. this is my code
.... and also
how can i do without refresh the page???
thanks in advance
i hope someone can help me...
i fill a combobox with a variable, but when i push a button, i need to change items in smy comboBox.. this is my code
<script type=
"text/javascript"
>
var
combobox;
var
data = [
{ text:
"White"
, value:
"1"
},
{ text:
"Black"
, value:
"2"
}
];
$(document).ready(
function
() {
combobox = $(
"#cmb"
).kendoComboBox({
dataSource: data,
dataTextField:
"text"
,
dataValueField:
"value"
}).data(
"kendoComboBox"
);
function
changeItems (){
data = [
{ text:
"Blue"
, value:
"1"
},
{ text:
"Green"
, value:
"2"
}
];
//now i want to change the items of my combobox
}
<
input
type
=
"button"
value
=
"Change"
id
=
"change"
onclick
=
"return changeItems();"
/>
thanks in advance