WebGrid performance fix

1 message Options
Embed this post
Permalink
Janko Mivšek

WebGrid performance fix

Reply Threaded More More options
Print post
Permalink
Dear all,

I just solved that bug in WebGrid, which degraded a WebGrid buildup
sometimes quite extentialy . WebGrid namely did filtering always, even
that there were nothing inserted in filter fields.

Fix is as follows:

Add new method:

WebGridColumn>>isFilterEntered
  "filter criteria is entered"
  ^self filter notNil and: [self filter trimBlanks notEmpty].

Change method:

WebGrid>>filterRows
 | columnsToFilter |
 columnsToFilter := self columns select: [:each | each isFilterEntered].
 ...

Best regards
Janko

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida