PDA

View Full Version : [CLOSED] Grid ColumnModel DefaultSortable



softmachine2011
Jul 31, 2012, 8:52 AM
Is there any equivalent property of old DefaultSortable in ColumnModel in v2.x?

Or I have to set Sortable property of each column?

Daniil
Jul 31, 2012, 9:36 AM
Hi,

Thanks for the report, we will add a respective CHANGELOG item.

Please set up <Defaults>.

Example

<ColumnModel runat="server">
<Defaults>
<ext:Parameter Name="sortable" Value="false" Mode="Raw" />
</Defaults>
<Columns>
<ext:Column runat="server" Text="Test1" DataIndex="test1" />
<ext:Column runat="server" Text="Test2" DataIndex="test2" Sortable="true" />
<ext:Column runat="server" Text="Test3" DataIndex="test3" />
</Columns>
</ColumnModel>

You also can be interested in the GridPanel SortableColumns property.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Table-cfg-sortableColumns (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.panel.Table-cfg-sortableColumns)

softmachine2011
Jul 31, 2012, 10:24 AM
SortableColumns property of GridPanel is the property that I was looking for

Thanks