Repopulating dropdown after OnClick event

3 posts, 1 answers
  1. David
    David avatar
    16 posts
    Member since:
    Aug 2014

    Posted 09 May Link to this post

    I am attempting to repopulate the dropdownlist with new items when a user clicks on a barchart. For the sake of the demo I made it simple html links instead of the barchart. Once they click on a link/bar the dropdownlist will repopulate with items in the new area. The old items will also be removed. The included example is close to what should occur but the dropdownlist's data is not being cleared and updated after clicking on the link. Please advise.
  2. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 11 May Link to this post

    Hello David,

    In order to change dynamically the data of the DropDownList widget please use its setDataSource method.

    Regards,
    Alexander Valchev
    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
  4. David
    David avatar
    16 posts
    Member since:
    Aug 2014

    Posted 11 May in reply to Alexander Valchev Link to this post

    Thanks that's exactly what I was looking for.
Back to Top