2014-02-13 83 views
0

我想創建在ASP.Net MVC定製電網具有以下特點JQuery的網格爲ASP.NET MVC剃刀

根據具體的情況
  • 編輯的欄(不是全部)。
  • 根據條件設置列的背景顏色。

請建議我什麼是最好的&簡單的jQuery庫可供gridview的功能(如ASP.NET)。

我對圓頂進行了一些研究,並找到了這個圖書館。

  • JQuery的數據表
  • JQXGrid(不過這是付費)
+0

您可以使用kendo UI框架。它具有良好的可視化,功能和易於修改的特點。還有很多文檔,教程和示例。 http://demos.telerik.com/kendo-ui/web/grid/index.html – MustafaP

回答

2

您可以使用jqGrid的插件,它真的非常靈活且易於使用。

要根據條件編輯任何列,可以有條件地使用set editable屬性爲true或false。

{ 
     name: 'ColumnName', index: 'ColumnName', align: 'left', 
     editable: function(cellvalue, options, rowObject){ 
         //Put some condition here, return true or false 
       }, 
    edittype: 'text', sortable: false, width: 7, search: true, 
    editoptions: { 
       //Custom attributes 
       requiredfield: "true", reqerrmsg: "Please enter data.", 
       caseType:"alphanumnolessgreater", maxlength: 500 } 
        } 
+0

Thanks @DotNetIsMyPower –

0

我建議他劍道UI服務器和工具的只有部分被支付,這是更好地見過。

誰勸JQXGrid是不是因爲它吮吸

+0

我們沒有使用telerik控件。我們只想在mvc中實現定製的網格功能。你可以請建議一些其他工具。 –

+0

還有jqgrid:http://trirand.com/blog/jqgrid/jqgrid.html –