Cascade with angular

2 posts, 0 answers
  1. Victor
    Victor avatar
    4 posts
    Member since:
    Aug 2015

    Posted 28 Dec 2015 Link to this post

    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

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 30 Dec 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top