extJS has that functionality, which you can see in the examples on extJS 
website - the "showing X of Y records" in the grid's footer.
however, in the CF8 implementation of extJS 1.1, this functionality has 
been disabled.
furthermore, a bug (?) in the CF8 implementation of extJS does NOT allow 
one to add this functionality back in manually through the 
toolbar/footer classes...

while you may think that one could get the total records by calling some 
js function with ajaxonload() - you can't: ajaxonload fires after ajax 
containers on the page have loaded (as in their UI is loaded), but 
before they are populated with data... so no way to use the grid 
object's datastore's totalLength() property...

the way i was able to implement an alternative to this is using 
cfajaxproxy, binding the grid to javascript function and reading the 
returned json data.  the TOTALROWCOUNT element of the returned json 
object (mind the case - js is case-sensitive) gives you the total number 
of records returned.

using ray camden's example - 
http://www.coldfusionjedi.com/index.cfm/2007/9/4/Exporting-from-CFGRID - 
you can combine the above with the pagesize and page properties of the 
grid object to build a full "showing records X - Y of Z records" 
thingy...  of course, that thingy will be outside of the grid...

hth, and hope it is not too jumbled to understand...

-- 

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293104
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to