0

Sorting data with pagination

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

javaenthu gravatar image javaenthu
141 2

Hello,
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.

<grid>
			<columns>	
				<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)" />
			</columns>
			<rows>
				<row self="@{each=results}" value="@{result}">
					<cell>
						<label value="@{result.firstName}" />
					</cell>
					<cell>
						<label value="@{result.lastName}" />
					</cell>
					<cell>
						<label value="@{result.age}" />
					</cell>
					<cell>
						<label value="@{result.gender}" />
					</cell>
					<cell>
						<label value="@{result.phone}" />
					</cell>
					<cell>
						<label value="@{result.email}" />
					</cell>
				</row>
			</rows>
		</grid>

<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

Follow

RSS

Stats

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