Hi,
in the past days I had a problem loading initial selected values into a kendo-multi-select.
The list is populated by a odata kendoDataSource and I've been setting k-options as
{
autoBind: false,
value: theArrayOfIdAndDisplayNameProperties
}
I've tried two different approaches:
1. load the selected values into the controller activation and use k-rebind
2. load the selected values into route resolve without using k-rebind
It turned out that the only way to get this work is the second, because if I'm loading data into the controller in an async way a digest exception is thrown every time. I've try to put the call in $timeout as explained into the guide: http://docs.telerik.com/kendo-ui/web/multiselect/how-to/AngularJS/pre-select-items but no chance.
Is there a way to load initial items from a controller without causing a digest error?
I'm using AngularJS 1.2.27 and Kendo UI v2014.3.1411
Thanks,
Enrico
in the past days I had a problem loading initial selected values into a kendo-multi-select.
The list is populated by a odata kendoDataSource and I've been setting k-options as
{
autoBind: false,
value: theArrayOfIdAndDisplayNameProperties
}
I've tried two different approaches:
1. load the selected values into the controller activation and use k-rebind
2. load the selected values into route resolve without using k-rebind
It turned out that the only way to get this work is the second, because if I'm loading data into the controller in an async way a digest exception is thrown every time. I've try to put the call in $timeout as explained into the guide: http://docs.telerik.com/kendo-ui/web/multiselect/how-to/AngularJS/pre-select-items but no chance.
Is there a way to load initial items from a controller without causing a digest error?
I'm using AngularJS 1.2.27 and Kendo UI v2014.3.1411
Thanks,
Enrico