2016-06-08 51 views
1

我米試圖從屏蔽UI grid.I獲得所選行的數據作爲JSON對象,在他們自己的documentation.But非需要工作給予thisthis例子嘗試。 grid.select()給我TypeError: c.value is not a functiongrid.selectedRowIndices()給出類型錯誤:grid.selectedRowIndices is not a function屏蔽UI電網獲得所選行的數據

events: { 
       selectionChanged: function (e) { 
        //var data = e.target.dataSource.view; 

        var grid = $("#user_grid").swidget(); 
        //console.log(grid.selectedRowIndices()); 
         console.log(grid.select()); 

任何幫助將是可觀的。謝謝。

回答