But if I remove the editable attribiute from all colums, then the sorting stops working.
To recreate, take the RapaGUI example Dialogs and edit the Dialogs.xml like this
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<menubar id="menubar">
<menu title="_File">
<item id="mn_prgbar">Test _progress bar dialog...</item>
<item/>
<item id="mn_exit" type="quit">E_xit</item>
</menu>
</menubar>
<window id="win" title="Dialogs" width="640" height="400" menubar="menubar" singlemenu="true">
<vgroup>
<listview id="lv" notify="active">
<column title="Select" />
<column title="Last name" sortable="true"/>
<column title="First name" sortable="true"/>
<column title="Street" sortable="true"/>
<column title="City" sortable="true"/>
<column title="ZIP" sortable="true"/>
<column title="Country" sortable="true"/>
</listview>
<hgroup>
<button id="add">Add</button>
<button id="edit" disabled="true">Edit</button>
<button id="mvup" disabled="true">Move up</button>
<button id="mvdown" disabled="true">Move down</button>
<button id="rem" disabled="true">Remove</button>
</hgroup>
</vgroup>
</window>
</application>