1 Reply Latest reply on Jun 5, 2009 12:41 PM by rvollmar

    AdvancedDataGrid Keyboard Not responding ( Second Try


      From this web site http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_02.html


      "Flex Data Visualization Developer's Guide  / Advanced Data Grid Controls and Automation Tools / Using the AdvancedDataGrid Control
      Keyboard navigation"


      "The following keystrokes are built into the AdvancedDataGrid control to let users navigate the control:"


      "Type characters to do incremental type-ahead look-ups in the first column."

      is this a miss print ?


      Why does this not work? On the Datagrid it at least works for the letter you type. The AdvanceDataGrid does nothing ?

      I have not found a switch or anything that effects this behavoir. PLEASE HELP  !

        • 1. Re: AdvancedDataGrid Keyboard Not responding ( Second Try
          rvollmar Level 1


          Below is some sample code using the AdvancedDataGrid.  When I build it with the beta build, the keyboard navigation seems to work.  e.g. Type A, then B, then C, then D, and the selection continues to move down to items A, AB, ABC, and ABCD.  Could you please post a simple code sample and describe what you're doing?



          <?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/halo" minWidth="1024" minHeight="768">


                      import mx.collections.ArrayCollection;
                      private var dpFlat:ArrayCollection = new ArrayCollection([
                        {Region:"A", Territory:"Arizona",
                            Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000},
                        {Region:"AB", Territory:"Arizona",
                            Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}, 
                        {Region:"ABC", Territory:"Northern California",
                            Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}, 
                        {Region:"ABCD", Territory:"Northern California",
                            Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000},
                        {Region:"Southwest", Territory:"Northern California",
                            Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000}, 
                        {Region:"Southwest", Territory:"Northern California",
                            Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000},
                        {Region:"Southwest", Territory:"Northern California",
                            Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}


              <mx:Panel title="AdvancedDataGrid Control Example"
                  height="75%" width="75%" layout="horizontal"
                  paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">


                  <mx:AdvancedDataGrid id="myADG"
                      width="100%" height="100%" dataProvider="{dpFlat}">       
                          <mx:AdvancedDataGridColumn dataField="Region"/>
                          <mx:AdvancedDataGridColumn dataField="Territory"/>
                          <mx:AdvancedDataGridColumn dataField="Territory_Rep"
                              headerText="Territory Rep"/>
                          <mx:AdvancedDataGridColumn dataField="Actual"/>
                          <mx:AdvancedDataGridColumn dataField="Estimate"/>