David, thanks a lot, this is a better solution than mine. Your solution was similar, but is better as it works with the result set rather than with the grids data provider.
Thanks Andrew --- In [email protected], "davcavs" <[EMAIL PROTECTED]> wrote: > > Don't know if this is exactly what you are asking for, but this is > another way to determine the number of results: > > private function handleNewProductsResult(evt:ResultEvent):void { > if (evt.result.products == null) { > // there are no results > newProductCount = 0; > } > else if (evt.result.products.product[0] == null) { > // not an array, so there is only one result > // and the result is evt.result.products.product > newProductCount = 1; > } > else { > // is an array with more than 1 result > newProductCount = evt.result.products.product.length; > } > //... > } > > -David -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

