Strange behaviour

4 posts, 0 answers
  1. Sagi
    Sagi avatar
    60 posts
    Member since:
    Sep 2008

    Posted 24 Mar 2013 Link to this post

    Hi,

    I have tested your Multi Select widget 
    It seems to me there is a bug there :
    When navigating to http://demos.kendoui.com/beta/web/multiselect/serverfiltering.html
    I can see that all  products are being
    downloaded to the client when the page just loads.
    I would expect that no data will be downloaded to the client, and only the relevant products will be fetched as I type inside the input area (fetching seems to happen , but since all products have already
    being downloaded at first hit , there is no use to download them again from the
    server).
    In the above sample 74 products were downloaded to the client when the widget have been loaded...

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 25 Mar 2013 Link to this post

    Hello Sagi,

     
    The items in the demo are downloaded because the autoBind option is set to true. Please note that you cannot set it to false and still have initially selected items, because the DataSource is not bound yet.

    The server is hit on every search, because the serverFiltering is set to true.

    There is a known issue in the official release - the server is fetched on click even when the minLength is bigger than 0. This is addressed and the fix will be available in the next internal build of Kendo UI due the mid of this week.

    Regards,
    Georgi Krustev
    the Telerik team
    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. Sagi
    Sagi avatar
    60 posts
    Member since:
    Sep 2008

    Posted 03 Apr 2013 Link to this post

    I did set the autoBind to false and the data was not downloaded when the component initialized.
    However, when focusing on the control text box (before starting to type) it will automatically bind to the data source and grab all the data...
    When will happen if I have 100,000 records...
    What I need is getting the relevant records that only match the search criteria.
    If all the data will be downloaded when just focusing on the component it loses much of its power since the application will suffer from bad performance.
    Any way to get around this ?
    Thx 

  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 04 Apr 2013 Link to this post

    Hi Sagi,

    If autoBind is set to false, the widget will hit the server when it is activated (by default that happens on focus). To control when the widget activates, you can use the minLength option.

    As my colleague explained there is a known issue in the official release connected with the minLength option. In order to use this feature, please download the latest internal release.

    Kind regards,
    Alexander Valchev
    the Telerik team
    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