2016-04-12 4 views

答えて

0

最後に、angularjsを使って水平スクロールバーの空の剣道グリッドを適用するための解決策を見つけました。

dataBound: function() { 
 

 
       if (this.dataSource.view().length == 0) { 
 
        //insert empty row 
 
        var colspan = this.thead.find("th").length; 
 
        var emptyRow = "<tr><td colspan='" + colspan + "'></td></tr>"; 
 
        this.tbody.html(emptyRow); 
 

 
        //workarounds for IE lt 9 
 
        this.table.width(800); 
 
        $(".k-grid-content").height(2 * kendo.support.scrollbar()); 
 
       } 
 
       else { 
 
        //To reset width and height once record filled in the grid 
 
        this.table.width('100%'); 
 
        $(".k-grid-content").height(''); 
 
       } 
 
}

関連する問題