WebGrid performance fix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

WebGrid performance fix

Janko Mivšek
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