MultiSelect with serverFiltering: Not setting values

5 posts, 0 answers
  1. George
    George avatar
    16 posts
    Member since:
    Mar 2012

    Posted 14 Apr Link to this post

    Hi Team,

    I've been messing around with this MultiSelect widget. It has been a little buggy after the Q3 2015 release. I'm saying so because this is not the first time I'm seeing and reporting a problem with this widget.

    So, If you please go to this link - http://dojo.telerik.com/OSoTU/4

    1. Type "cha" in the multiselect control, and wait for 2 seconds to see the matching products,
    2.  Go ahead and choose one item from the products,
    3. Now, hit "Populate Items" button to add one more item to the widget.

    It does not add it for the first time, but you can see the textbox has updated values. Now, if you hit the button again, it will show you the right items in the widget.

    And this behavior can only been seen If serverFiltering is active.

    Any suggestions?

     

    Thanks,

    George

  2. George
    George avatar
    16 posts
    Member since:
    Mar 2012

    Posted 17 Apr Link to this post

    Anyone? Any input, or suggestion?
  3. Kendo UI is VS 2017 Ready
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 18 Apr Link to this post

    Hello George,

    The described behavior is actually expected, because you cannot update the datasource data manually when it uses a server operations (filtering, paging and etc). If you would like to update the data, then you will need to update the whole data source:
    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. George
    George avatar
    16 posts
    Member since:
    Mar 2012

    Posted 18 Apr in reply to Georgi Krustev Link to this post

    Hi Georgi,

    Please tale a look at this - http://dojo.telerik.com/UkINe? This is same source code but with the last version of kendo library. It works fine here. This seems to be a very common behavior people would want to use. I was using it to choose/select people from an active directory, and I have many cases where user would want to copy/pull people from existing/pre-defined sets.

    Thanks,

    George

  6. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 20 Apr Link to this post

    Hello George,

    Thank you for the repro demo. I agree that it has scenarios that require to update the source and select custom values. In that case, you will need either to:
    • return the "fake" item from the server
    • update the whole DataSource, as I've shown in my previous reply

    The approach shown in your demo has worked by chance. It has never been intended to work. I am afraid that you will need to use one of the suggested approaches if you would like to update the source. The referenced implementation has never been officially supported and you will need to refrain from using it.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready