3 Replies Latest reply on Jul 24, 2011 9:25 PM by archemedia

    AdvancedDataGrid columns

    archemedia Level 4

      Hi everyone,

       

      I am struggling with what seems a trivial problem:

       

      I created a new class which extends AdvancedDataGrid.

      I want to add a column inside my class. This is the code:

       

      var col:AdvancedDataGridColumn = new AdvancedDataGridColumn();

      col.headerText = "My new column";

      col.dataField = "myField";

      columns.push(col);

       

       

      When I debug this code and watch the columns property of my class, nothing seems to be added!

       

      What am I doing wrong??

       

      Thanks,

       

      Dany

       

      Message was edited by: archemedia