I have one dropdwonlist in my view i want to when change dropdownlist list many checkbox and id change again save the state
Roles:<
select
id
=
"roles"
data-bind
=
"source: roles, value: role"
data-text-field
=
"roleName"
data-value-field
=
"roleId"
></
select
>
</
div
>
$(document).ready(function() {
var viewModel = kendo.observable({
roles: [ {
roleName:"Admin",
roleId:1
},
{
roleName:"user",
roleId:2
}],
Accesses:[{
accssesName:"read",accessMode:true},
{accssesName:"Write",accessMode:false},
{accssesName:"Delete",accessMode:false}
]
});
kendo.bind($("#example"), viewModel);
var roles=[
{
roleName:"Admin",
roleId:1
},
{
roleName:"user",
roleId:2
}
];
var roledataSource= new kendo.data.DataSource({
roles:roles
});
});