1 Reply Latest reply on Dec 8, 2010 10:58 AM by Peter deHaan

    Sorting in spark DataGrid

    irina_mit

      Does new spark DataGrid supports sorting by default? Give me any example, if it's possible. Thanks!

        • 1. Re: Sorting in spark DataGrid
          Peter deHaan Level 4

          This works in 4.5.0.18623 (latest build from http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+Hero ):

           

          <?xml version="1.0" encoding="utf-8"?>

          <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

                         xmlns:s="library://ns.adobe.com/flex/spark"

                         xmlns:mx="library://ns.adobe.com/flex/mx">

              <s:controlBarContent>

                  <s:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />

              </s:controlBarContent>

           

              <s:DataGrid>

                  <s:dataProvider>

                      <s:ArrayCollection source="{Font.enumerateFonts(true)}" />

                  </s:dataProvider>

              </s:DataGrid>

           

          </s:Application>

          Peter