O'Reilly logo

Ext.NET Web Application Development by Anup Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sorting

Sorting on GridPanels is done by either clicking on the column header, or by using the Sort option in the column menu.

Sorting therefore involves knowing two pieces of information—the column you want to sort, and the direction to sort in.

Tip

Sorting by multiple fields is supported by the Store but not the GridPanel.

Natively, the GridPanel itself doesn't support the ability to sort by multiple columns. The underlying Store, however, does.

Given that the GridPanel uses a Store, you can build a custom implementation to sort by more than one column. It would likely require a lot more Ext JS JavaScript to be written. An example is provided in Ext.NET's Examples Explorer at http://examples.ext.net/#/GridPanel/Paging_and_Sorting/Multiple_Sorting_Local/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required