Friday, October 22, 2010

Data Table at Client Side


Data table can be created at the client side. Here is a small illustration:





1: function CreateDataTable(){



2: var dt = new Ajax.Web.DataTable();



3: dt.addColumn("C1", "System.String");



4: dt.addColumn("C2", "System.String");



5: dt.addRow({ "C1": "Value of C1", "C2": "Value of C2"});



6: }




Done.

No comments: