Sorting data with pagination

asked 2012-05-23 10:11:15 +0800

javaenthu gravatar image javaenthu
141 2

I have data which spans multiple pages. Per page I am showing 50 records. When i click on grid's column title I am able to sort this 50 records by header. But on the next page I am seeing the 51 to 100 records are not sorted is there any way by which I can sort the next 50 records also?

For example :
I am sorting by column "firstName" I am able to sort first 50 records but when i go to the next page i see the records in unsorted. I would to see the next 50 records also sorted by first name.

				<column label="First Name" sort="auto(firstName)"  />
				<column label="Last Name" sort="auto(lastName)"  />
				<column label="Age" sort="auto(age)" />
				<column label="Gender" sort="auto(gender)" />
				<column label="Phone Number" sort="auto(phone)" />
				<column label="email" sort="auto(email)" />
				<row self="@{each=results}" value="@{result}">
						<label value="@{result.firstName}" />
						<label value="@{result.lastName}" />
						<label value="@{result.age}" />
						<label value="@{result.gender}" />
						<label value="@{result.phone}" />
						<label value="@{result.email}" />

<paging id="detailsPaging" detailed="true" pageSize="50" forward="onPaging=onPagingMethohd" />

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-05-24 07:04:01 +0800

javaenthu gravatar image javaenthu
141 2

Any inputs?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2012-05-23 10:11:15 +0800

Seen: 90 times

Last updated: May 24 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More