background
The company purchased the MINIUI, when the existing Project table table, the official website API does not provide static data cases, resulting in various failures
Solution Solutions
The net forum, see someone said Grid.load () is relative to the URL to use, remove the good
How to use the correct SetData
<div id= "DataGridTable" class= "Mini-datagrid" style= "width:100 %;min-height: 300px; " allowresize= "true" idfield= "id" multiselect= "true" showemptytext= "True" emptytext= "Hello: System temporarily no data, please add!" "> <div property=" > "columns" <div type= "Indexcolumn" width= "ten" headeralign= "center" > Serial number </div> <div field= "name" width= " headeralign=" "center" Allowsort= "false" > name </div> <div name= "Action" width= " headeralign=", "Center" align= "center" renderer= " Onactionrenderer " cellstyle=" padding:0; " > Operation </DIV>&NBSP;&NBsp; </div> </div> var grid = mini.get ("DataGrid1");var data = new Array ();d Ata.push ({"Name": "Zhang San"});d Ata.push ({"Name": "John Doe"}); Grid.setdata ();
End
To complete the static setting, be careful not to use the load () method
Set the MINIUI Datagrid SetData errors JSON Error resolution method