issues when toggle the tag modes with rebind attribute

3 posts, 1 answers
  1. Freddy
    Freddy avatar
    9 posts
    Member since:
    Aug 2015

    Posted 01 Feb Link to this post

    Hello,

     I met a situation that I should toggle the multiselect control's tag mode dynamically. when there are more than fixed amount items, use single mode, when less than the amount, then use multiple mode. 

    According to this, I should use k-rebind to recreate the control while the tagMode changed. But the first time it always clear the selected items. I google it and somebody suggest to use k-ng-model, and k-value-primitive, but it also cannot work. here is the sample in dojo.

    Does anyone know how to fix this?

  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 04 Feb Link to this post

    Hello Freddy,

    In general, the widget is not designed to change the tagMode option dynamically. Hence the only feasible way to accomplish your goal is to use several of the widget's API methods to change the tag mode and then re-select the selected values. Check the updated demo:
    Regards,
    Georgi Krustev
    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. Freddy
    Freddy avatar
    9 posts
    Member since:
    Aug 2015

    Posted 04 Feb in reply to Georgi Krustev Link to this post

    Thanks Georgi, it is great, it indeed make sense.
Back to Top