Select the item with "0" as the value in the kendo dropdown

The data source for the selected k-kendo-dropdown grid has two values: {desc: 'zero', value: '0'} {desc: 'One', value: '1'}

Even if k-ng-model is 0, zero is not selected. If I use any other value, then the corresponding desc is selected.

When searching for it, I saw a link that has a problem using 0 as the value to select kendodropdown. Someone suggested using input data-role = 'dropdown' instead. ( http://www.telerik.com/forums/data-value-not-working-when-zero )

but i am looking for a workaround with kendodropdown selection. Any help would be appreciated.

+3


source to share





All Articles