2 Replies Latest reply on Nov 1, 2011 10:36 PM by highlightscript

    Data binding

    Zolotoj Level 3

      Under what circumstances the following will not trigger data binding events:

      <ns:Button id="btn1" enabled="{cnt1.selectedIndex >= 0}"/>

       

      cnt1 is based on this:

      package

      {

          [Bindable]

          public class DataGridContainer extends DataGridContainerBase

          {

              public function get grid():DataGridBase

              {

                  return _grid;

              }

              public function get selectedIndex():int

              {

                  trace(_grid.selectedIndex);

                  return -1;

                  //return _grid.selectedIndex;

              }

              override protected function createGrid():DataGridBase

              {

                  super.createGrid();

           

              }

             

          }

      }

       

      Thanks