2017-05-31 43 views
0

我可以綁定jsgrid具有預定義欄以HTML表格JS網格模板的行和列

<table id="MapDetails"> 
    <thead> 
     <th>... 
     <th>.. 
    </thead> 
    <tbody> 
    </tbody> 
</table> 

所以,現在我可以做這樣的事情?

$("#MapDetails").jsGrid({ 
     width: "100%", 
     height: "400px", 

     inserting: true, 
     editing: true, 
     sorting: true, 
     paging: true 

    }); 

而且除了上面再定義一個ItemTemplate行和終於能排序,網頁,編輯並綁定到下拉列表等

回答

0

沒有,jsGrid不能在預定的桌子上被定義標記。所有標記都將由插件呈現。 只需聲明一個空元素並在頂部初始化jsGrid即可提供配置。

<div id="jsGrid"></div> 

<script> 
    $("#jsGrid").jsGrid({ 
     // your configuration 
    }); 
</script> 

結帳即將開始guide