You found a bug! We've classified it as EXTJS-8188 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    974
    Vote Rating
    110
    Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all Daniil is a name known to all

      0  

    Default ComboBox and BoundList pageSize inconsistency

    ComboBox and BoundList pageSize inconsistency


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.2.0 beta
    Description:
    • The pageSize config option of ComboBox and BoundList confuses a bit. The name of the config option assumes that it can be used to manage page size, but according to the sources it is actually used as a boolean to show or not a PagingToolbar (also it is used in the ComboBox's doQuery, but again as a boolean). And the page size is actually managed by the Store's pageSize. Yes, it works because JavaScript interprets 0 as false, and not 0 as true. But I am talking about the inconsistency.
    • I assume this thing just stays since ExtJS 3 where the ComboBox's pageSize is really used as a number. But maybe is it time to change? Maybe a boolean config like "enablePaging" or "showPagingToolbar" would be better. Or are you planning to pass the ComboBox's pageSize to its Store's pageSize?
    • Actually, it is reported in the docs, but it doesn't look just a doc issue.

    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,909
    Vote Rating
    626
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      2  

    Default


    Yes, the pageSize config is essentially just a boolean now because paging is handled by the store itself. It's mostly a backwards compatibility thing, but we should probably phase out the config for something a bit clearer.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User SimoAmi's Avatar
    Join Date
    Oct 2008
    Location
    New York
    Posts
    119
    Vote Rating
    3
    SimoAmi will become famous soon enough

      0  

    Default


    Hi,
    It makes sense to at least mark the property as deprecated, or document the new behavior just like in the PagingToolbar documentation.

Thread Participants: 2