I have implemented the Kendo UI DropDownList with virtualization and server filtering. I have set the pageSize to 250 (this is the optimal size for my application).
When the DropDownList is initialized the first read uses the correct pageSize of 250, but when I scroll so that the next page should be called, the pageSize retrieved from options.data.pageSize and the page options.data.page does not have the correct value (the pageSize is 46/47 and the page is 6/7, but they should be 250 and 2). As I have 2000+ items in my DropDownList, this leads to a lot of requests. If the pageSize were kept to 250 there would be 8 requests for 2000 items, but as it is changed to 46 there are 44 requests to retrieve all items. How can I configure the DropDownList to use the pageSize that I have specified. I have no idea where the new page size and page values come from, but they are wrong in my opinion.
I also stumbled upon another problem. As I don't have a preselected value for my DropDownList, I don't need the valueMapper function, but there is no need to work around this, so I had to hardcode the index to 0. I tried to pass no value to the options.success(); function, but this resulted in breaking the dropdown. Is there a way to skip this or to pass some other value? I don't want to have a preselected value when the dropdown is initialized (and with this HACK) the first item is selected.
I have made an example of whantI have implemented the Kendo UI DropDownList with virtualization and server filtering. I have set the pageSize to 250 (this is the optimal size for my application).
When the DropDownList is initialized the first read uses the correct pageSize of 250, but when I scroll so that the next page should be called, the pageSize retrieved from options.data.pageSize and the page options.data.page does not have the correct value (the pageSize is 46/47 and the page is 6/7, but they should be 250 and 2). As I have 2000+ items in my DropDownList, this leads to a lot of requests. If the pageSize were kept to 250 there would be 8 requests for 2000 items, but as it is changed to 46 there are 44 requests to retrieve all items. How can I configure the DropDownList to use the pageSize that I have specified. I have no idea where the new page size and page values come from, but they are wrong in my opinion.
I also stumbled upon another problem. As I don't have a preselected value for my DropDownList, I don't need the valueMapper function, but there is no need to work around this, so I had to hardcode the index to 0. I tried to pass no value to the options.success(); function, but this resulted in breaking the dropdown. Is there a way to skip this or to pass some other value? I don't want to have a preselected value when the dropdown is initialized (and with this HACK) the first item is selected.
I have made an example of what I am talking about: I have implemented the Kendo UI DropDownList with virtualization and server filtering. I have set the pageSize to 250 (this is the optimal size for my application).
When the DropDownList is initialized the first read uses the correct pageSize of 250, but when I scroll so that the next page should be called, the pageSize retrieved from options.data.pageSize and the page options.data.page does not have the correct value (the pageSize is 46/47 and the page is 6/7, but they should be 250 and 2). As I have 2000+ items in my DropDownList, this leads to a lot of requests. If the pageSize were kept to 250 there would be 8 requests for 2000 items, but as it is changed to 46 there are 44 requests to retrieve all items. How can I configure the DropDownList to use the pageSize that I have specified. I have no idea where the new page size and page values come from, but they are wrong in my opinion.
I also stumbled upon another problem. As I don't have a preselected value for my DropDownList, I don't need the valueMapper function, but there is no need to work around this, so I had to hardcode the index to 0. I tried to pass no value to the options.success(); function, but this resulted in breaking the dropdown. Is there a way to skip this or to pass some other value? I don't want to have a preselected value when the dropdown is initialized (and with this HACK) the first item is selected.
I have made an example of what I am talking about: http://dojo.telerik.com/@ivanst.stoyanov/eZoSu/3
Reading the documentation I have noticed that the Preview of some of your examples do not work:
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-virtual
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-virtual.itemHeight
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-virtual.valueMapper
Ivan