2016-06-08 53 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()); 

任何帮助将是可观的。谢谢。

回答