Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
Custom Row Adding
posted

I would like to be able to add a row to the bottom of the grid but seem not to see a way to do this.  The .add() method of the rows collection seems not to work.

 

 

Parents
No Data
Reply
  • 5739
    posted

    Hi,

    You  have to create the actual row object and then add it.  Here's a sample.

            function AddRowToGrid() {
                var grid = ig_controls["WebDataGrid1"];
                 var row = new Array("Hello", 1, 2);
                grid.get_rows().add(row);
                return false;
            }

    Ed

Children