0

ZK Listheader set sort programmatically

asked 2017-06-12 21:32:01 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

I have a listheader like this

<listheader id='lh3' label="Quantity" sort="auto(lower(value))"/>

I need to remove the sort sometime i have use this method.

final Listheader header = .....
header.setSort(null);

But it stills have the sort attrribute i cannot get the sort because the header doesn't have a getSort() method this is a kinda weird!!!

I am doing it all wrong? What can i do to remove the sort attribute programmatically..

Thanks a lot and best regards from Venezuela

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-14 02:49:16 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2017-06-14 02:51:24 +0800

Nothing weird there... and reading the documentation on setSort you'll find that it's a shorthand method for calling setSortAscending/setSortDescending (which both have getters).

However the documentation also states that calling

header.setSort("none");

will remove the sorting comparators. Did you try that already?

link publish delete flag offensive edit
Your answer
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
2 followers

RSS

Stats

Asked: 2017-06-12 21:32:01 +0800

Seen: 20 times

Last updated: Jun 14 '17

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