This is a migrated thread and some comments may be shown as answers.

Cascade with angular

1 Answer 167 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 28 Dec 2015, 02:37 PM

Hi all,

 

We has some issue with DDL. 

 

There is some description: 

We have kendo window

with two DDL. 

 

<select kendo-drop-down-list
id="aaa"
k-data-text-field="'Name'"
k-data-value-field="'Id'"
k-data-source="OneSource" />
 
<select kendo-drop-down-list
id="bbb"
k-data-text-field="'Name'"
k-data-value-field="'Id'"
k-cascade-from-field="'parentid'"
k-cascade-from="'aaa'"
k-data-source="TwoSource" />

--------------------------------------

And data from server. [Server give all data (I`ll check with fiddler)]

Parent ds: (OneSource)

{"Id":1,"CodeXXX":"One","Name":"SuperValue","RandomNumber":1},
{"Id":2,"CodeXXX":"Two","Name":"SuperValue2","RandomNumber":2}

Child ds: (TwoSource)

{"Id":1,"CodeXXX":"A","Name":"Name1","parentid":1,"RandomNumber":1},{"Id":2,"CodeXXX":"B","Name":"Name2","parentid":1,"RandomNumber":2},{"Id":4,"CodeXXX":"C","Name":"Name3","parentid":1,"RandomNumber":3},{"Id":5,"CodeXXX":"D","Name":"Name4","parentid":1,"RandomNumber":4},
 

First ddl work properly but second didn't cascade or show any date.

If it is important  we are using v2015.2.805

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Dec 2015, 09:53 AM
Hello Viktor,

The issue that you are facing is due to the fact that you are using SELECT tag for initializing the widgets, but in your case you need to use INPUT tag instead. Please refer to the following dojo example, where the same code works correctly with INPUT elements:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Victor
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or