kbond / ZenstruckFormBundle

Provides Twitter Bootstrap form theme, a help type extension, Ajax/Tunnel/Select2 entity form types and javascript helpers
25 stars 14 forks source link

Categorizing Results #32

Closed DougHayward closed 10 years ago

DougHayward commented 10 years ago

In the Select2 examples on http://ivaynberg.github.io/select2/ the search results are put into categories eg:

 Alaskan/Hawaiian Time Zone
       Alaska
       Hawaii
 Pacific Time Zone
       California
       Nevada
       Oregon

I know I need to somehow use However I can't seem to work the documentation out on the site nor fathom how to achieve this with the Zenstruck Bundle. Any suggestions would be much appreciated, preferably I would like to organize results by a Category column stored in my database.

Also, while I've got this open. How do we do infinite result scrolling using Zenstruck? Ta much, Doug.

kbond commented 10 years ago

Hi Doug,

Both those are currently beyond the scope of this Bundle. It would be nice to have in the future but at this point, I do not have time to work on it.

You would have to customize both the controller and the javascript. Trying to do this with the bundle as it stands would be cumbersome. I suggest not using the bundle.

For how to load categories from a remote source, see: http://stackoverflow.com/questions/18346518/dynamically-adding-options-and-optgroups-in-select2

DougHayward commented 10 years ago

Thanks, for the swift reply.