This is a migrated thread and some comments may be shown as answers.

Strange behaviour

3 Answers 67 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Sagi
Top achievements
Rank 1
Sagi asked on 24 Mar 2013, 05:13 AM
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...

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 Mar 2013, 02:22 PM
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!
0
Sagi
Top achievements
Rank 1
answered on 03 Apr 2013, 05:27 AM
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 

0
Alexander Valchev
Telerik team
answered on 04 Apr 2013, 04:21 PM
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!
Tags
MultiSelect
Asked by
Sagi
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Sagi
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or