PDA

View Full Version : [CLOSED] sorting a datagrid after render



feanor91
Sep 26, 2012, 9:12 AM
Hello

I need to sort a grid from a JSON file but I couldnt sort my JSON return, so, I want to know, if it is possible to sort the grid on a column after render and without action of any one.

Daniil
Sep 26, 2012, 11:34 AM
Hi,

Please configure a DataSorter and place it into the Store Sorters collection.

Example

<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="test" />
</Fields>
</ext:Model>
</Model>
<Sorters>
<ext:DataSorter Property="test" Direction="ASC" />
</Sorters>
</ext:Store>

feanor91
Sep 26, 2012, 11:55 AM
Thanks a lot

feanor91
Sep 26, 2012, 3:16 PM
Thanks a lot