Converting HTML Table to DataGrid
To turn an HTML table into DataGrid you should call method parse with these parameters:
- data - the ID of the table;
- datatype - the format of data. Must be set to ‘htmltable’.
Loading data from an html table
<table id="films"> <tr> <td width="40">id</td> <td width="200">Film title</td> <td width="80">Release year</td> </tr> ...</table><script>var grid = webix.grid({ autoheight:true, autowidth:true});
grid.parse("films", "htmltable");</script>