you'd have to code your own widget, that is not that difficult. 
That being said, it's a taddle bit foolish wanting to inject 3k options in 
a page: datalist is "cool" over the standard "select", but it doesn't cut 
the weight of the markup. 
I'd go with select2 and items loaded via ajax, so you can use the backend's 
capability to search though the items, and the page will be faster to load. 
BTW, the autocomplete widget included in web2py seems a pretty clear winner 
in this usecase, if you don't want to fiddle with select2.

On Friday, June 6, 2014 12:35:47 PM UTC+2, Mandar Vaze wrote:
>
> My application has select/option  dropdown - which contains lots of 
> entries (one has about 200 entries, other about 3000 - yes three thousand)
> I was wondering if there is a way to use HTML5 datalist widget to make the 
> selection user friendly.
>
> http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist
>
> My other option is to use select2 (http://ivaynberg.github.io/select2/) 
> but I prefer to use "native" HTML5 datalist - instead of relying on 3rd 
> party JS library as far as possible.
>
> Currently my "select" is getting created due to "reference" or 
> "list:reference" (multiselect) field types defined in model
>
> -Mandar
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to