The greatest thing since sliced bread

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: WebGrid filters (was The greatest...)

Nicolas Petton
Hi,

2009/1/24 Herbert König <[hidden email]>
Hello Janko,

JM> Better solution is to use filter fields
JM> (see http://demo.aidaweb.si/?view=grid).
is there something to learn from this example which can't be learned
from the tutorial? If so, I missed it.

JM> Having a table with lots of rows is never a good idea and calls for
JM> better solution.
Yes! Many bad examples on the net.

JM> That's why we have (besides paging) also very flexible
JM> column filters in WebGrid. Use them!

Filtering like used in the tutorial is only a good idea if you can
afford to display the whole list in case the user empties all filters.

WebGrid support paging. You can use it if the list is too long. We use it in history views of pages in Scribo, or to display blog post comments.


As far as I browsed the code it's limited to String>>match:. Which is
nice now that I know it. With *m##er* I could find names containing
all variants of German "meier". Nice but the user has to know.

I think it depends on the size of the lists (in the model) if one can
rely on WebGrid's filtering capacity. For a big address book one would
start with the first say 25 entries starting with "a". Entering a "b"
into the filter would switch to the first 25 starting with "b",
entering "br" would jump to e.g. "Brandon" onward.

I think this is beyond the filter ability of WebGrid and this
behaviour belongs into AddressBookApp and not into WebGrid.

Tell me if you think I'm wrong, I'm planning for my own app.

It would display the last 10 lines in case of data entry or 5 lines
before and 4 lines behind the current entry in case of editing data.


Cheers

Herbert                            mailto:[hidden email]

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida



--
Nicolas Petton

http://nico.bioskop.fr

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebGrid filters (was The greatest...)

Herbert König
Hello Nicolas,

JM>> That's why we have (besides paging) also very flexible
JM>> column filters in WebGrid. Use them!

np> WebGrid support paging. You can use it if the list is too
np> long. We use it in history views of pages in Scribo, or to display
np> blog post comments.

I have to look at that




Cheers,

Herbert                            mailto:[hidden email]

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: WebGrid filters (was The greatest...)

Nicolas Petton
Le lundi 26 janvier 2009 à 20:42 +0100, Herbert König a écrit :
> I have to look at that

Take a look at BlogApp>>commentsGridElement in Scribo:

http://scribo.aidaweb.si/browse/scribo-np.176/scribo-blog/blogapp/commentsgridelement.html
The key method is #rowsOnPage:

If you need more advanced WebGrid usage, I can point you some more
complex examples.

Hope this helps.

Cheers!

Nico
--
Nicolas Petton
http://nico.aidaweb.si
            ___
          ooooooo
         OOOOOOOOO
        |Smalltalk|
         OOOOOOOOO
          ooooooo
           \   /
            [|]
--------------------------------
Ma clé PGP est disponible ici :
http://nico.aidaweb.si/pgp-key.html

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

signature.asc (204 bytes) Download Attachment
12