0

Tree sort column by default [closed]

asked 2016-02-04 17:19:37 +0800

Neus gravatar image Neus
1415 14

Hi, I'm creating a tree using mvvm. I need to sort by one of its columns by default, without making the user click it. How can I do it?

Thank you!

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by Neus
close date 2016-02-08 08:55:58

Comments

you simulate the sorting by user click in onCreate event.

chillworld ( 2016-02-05 06:59:35 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-07 12:43:19 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Neus,

Please refer to the following:

http://books.zkoss.org/wiki/ZKComponentReference/Data/Tree#org.zkoss.zul.tree.autoSort

Best,

Darksu

link publish delete flag offensive edit

Comments

Thank you Darksu, this is what I was looking for!

Neus ( 2016-02-08 08:55:27 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-02-04 17:19:37 +0800

Seen: 19 times

Last updated: Feb 07 '16

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