Its seems to work fine for me.
Can you try the sample app attached ?
pagination_sorting_app.zip 1.3 MB
Thanks for the response and the sample app. I've been swamped and haven't had a chance to look at what you sent. I will do so tomorrow (Thursday) or Friday and let you know. Again, I appreciate you reaching out to help me. Have a great day.
Just entered some test data into your app. Looks like its working great, thanks for the sample.
But I have another related problem. Not sure if I should open a new thread for it, but here goes :
In my erb, I have information in several lists displayed in a single view. Some of the list information being displayed come from models, others from arrays processed in the controller. Now, depending on the volume of data, the information being rendered can be very large. That's not a problem in the newer devices, but it is on older ones like the HTC HD Mini. Looks like the large amount of info is choking the device memory.
My question is whether (a) Paging would help in this scenario and (b) if yes, then how to implement paging in this scenario?
To make things clearer, but so as not to clutter this post, I am attaching my ERB
My ERB.txt.zip 1.7 K
Could you please open a new thread for your question.
I ran into a similar issue to the post you had on sorted loading. This is what I did in my case to get it to work to retrieve the oldest date:
@last_activity = OrderActivity.find(:all,
:order => 'ActivityDateTime DESC',
:limit => 1,
:per_page => 1)
lastActivityID = 0
if @last_activity != nil
@last_activity.each do |each_part|
lastActivityID = each_part.ActivityTypeId
Not the most efficient but my table is so small (100 records max) that it really doesn't matter.
Hope that helps.