http://imgur.com/mfpBaAl
I seem to manage to change the selection using following code:
var a = $('[data-bind="value:AttributeControlTypeId"]')
.data("kendoDropDownList");
$.each(a.dataSource.options.data, function (ix, item) {
if (item.Id == 50)
{
$('[data-container-for="AttributeControlTypeId"]').children().hide();
a.select(ix);
a.value($("#" + item.Name).val());
return false;
}
});
Yet when i press the update button to save the current line, it shows the previously selected value.
Somehow i guess the model doesn't get updated.
Any help would be greatly appreciated :)