PDA

View Full Version : [OPEN] [#38] Combobox with infinite scrolling



Leonid_Veriga
Oct 01, 2012, 9:42 AM
Hi,

Could you please assist to create a combo with infinite scrolling like it is done with GridPanel in your examples.
I defined the next store and associate it with a combobox control. As a result: one page only was loaded and the combobox scrollbar was set for this only page. So I can't force to show me items from other pages. Btw I saw 3 server calls for Page #1, Page #2, Page #3. So it seems they were buffered successfully.



<ext:Store ID="storeObjects" runat="server" Buffered="true" PageSize="100" OnReadData="Store_ReadData">
<Model>
<ext:Model runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="ID" />
<ext:ModelField Name="Name" />
</Fields>
</ext:Model>
</Model>
<Proxy>
<ext:PageProxy>
<Reader>
<ext:JsonReader Root="data" />
</Reader>
</ext:PageProxy>
</Proxy>
</ext:Store>


Maybe the reason that the combo does not show other pages is he can't deal with Total value which I returned in "Store_ReadData" handler?

Thanks in advance!

Daniil
Oct 01, 2012, 12:23 PM
Hi,

Unfortunately, it is not supported.

It is not enough to set Buffered to true. A view should support buffered scrolling.

At the moment only GridView supports it, a common DataView doesn't support. A BoundList which is used by ComboBox is a subclass of DataView.

I have asked Mitchell here they are planning or not to support it.
http://www.sencha.com/forum/showthread.php?174633&p=893813&viewfull=1#post893813

Maybe, he will answer something concrete.

For now all that we can suggest is a DropDownField + GridPanel combination.

Leonid_Veriga
Oct 01, 2012, 12:42 PM
Daniil,

Thanks for your response. It's a pity..
Hope this gap will be filled in the near future!

Daniil
Oct 01, 2012, 12:52 PM
Yes, we should fill this gap.

Thank you for the question!

Baidaly
Nov 17, 2012, 12:38 AM
Opened an Issue to track this defect, see

https://github.com/extnet/Ext.NET/issues/38