md-data-table
md-data-table copied to clipboard
Select Row on Load
Can i select rows during inicialization table? if i has $scope.selected = [{id:1,name:'test1'}] , row in table is not selected ... is it possible ?
unsystematic but functional:
line 661 >
for (var i = 0; i < scope.items.length; i++) {
if(scope.items[i].select === true) {
tableCtrl.selectedItems.push(scope.items[i]);
}
};
I have the same issue, I have a few items set before the table is rendered, but it looks like it does not select the rows that match the same items that are set on ng-model on the md-table element.
I have just opened a pull request that fixes this.
Hi, i have the same problem. We have one final solution?