-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Altering the code snippet from the wiki like this

@Component
~    private Grid taskGrid;

@SetupRender
~    public void setupGrid() {
~        taskGrid.getSortModel().updateSort("columnName");
~    }

work for me but produces the nasty side effect, that the column
initially sorted can't be changed afterwards. The documentation says that

| The sort constraints (the column that is sorted, and ascending vs.
descending) is stored as persistent fields of the Grid component.

but i'am not sure how to access them. Could someone please provide an
additional hint?

best regards

Andreas Pursian

Harald Geritzer wrote:
|> See
|>
<http://wiki.apache.org/tapestry/Tapestry5GridComponent#head-3f39347a90813b68e1e1f773746476693b50f7c8>

|>
|
| thanks, but the wiki seems to be outdated. since the sorting changed
| with 5.0.11 by introducing sortmodels updateSort does not exist anymore.
|
| i even tried to setting the sortmodels sortcolumn in my pageLoaded
| procedure but a NPE is thrown
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH6n3hM14O/Esx/74RAmgBAKC1tm/np1zEM3/ARg0eaQckP0ZjkQCgh7PN
C09B56KvDTrenakHFLKKIBI=
=ZWbd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to