| Page 1 of 1 | [ 3 posts ] |
|
I have a DataTable that uses an XHRDataSource I have configured everything so that the data in the table gets filtered based on the value specified in a textbox. My issue is that on every keystroke within the aforementioned text box results in another XHR (to get the filtered results), is there anyway to avoid this?
I have noticed this article http://developer.yahoo.com/yui/examples/datatable/dt_localfilter.html that provides an implementation to filter on the client side but this requires a JSARRAY data source. Is there anyway that I can perhaps store the result of my XHR in an array and use the implementation found in the article above? |
|
You can use an XHR Datasource independently to fetch data into an array and then use that array to feed the DataTable via another LocalDataSource.
This example: http://developer.yahoo.com/yui/examples ... array.html shows how to use DataSource to read an HTML table and return an array from its contents. You could do the same using an XHR DataSource and fetch data from a remote source. |
|
Thanks for the reply Satyam. I assumed I'd have to go down that route. Works a treat!
|
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group