Requirements: Dynamically generate columns based on the time period selected by the user, as follows
When the user selects the time period and clicks the ' Go ' button, how do I change the column names in the DataGrid? Ask the great God to use a simple example to guide
Reply to discussion (solution)
http://www.iteye.com/topic/1127192
data-options= "URL: ' get_salesquantityper.php ', Singleselect:true, Rownumbers:true"
>
Category
Include "t.php";
INITROWS1 ($x 1, $x 2);//initrows1 method Correct output
?>
InitRows2 ($x 1, $x 2);
?>
The container of the DataGrid is enclosed in a container, and after the query empties the DataGrid code generated by the container Easyui, Easyui does not provide a way to change the columns configuration, and there is no way to unregister the DataGrid, only by emptying the container to remove the DataGrid. If you use the Jqgrid has the ability to provide logoff Jqgrid
Click Query
$ (' #dvDataGrid '). HTML ('
///Refer to your other post and use Ajax to retrieve the contents of the columns and re-call $ (' #salesquantityper '). Method of DataGrid () to generate DataGrid object load columns new match and data