md-data-table icon indicating copy to clipboard operation
md-data-table copied to clipboard

Select Row on Load

Open tazaka opened this issue 10 years ago • 4 comments

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 ?

tazaka avatar Sep 24 '15 14:09 tazaka

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]);
} };

tazaka avatar Sep 24 '15 14:09 tazaka

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.

rolandjitsu avatar Feb 08 '16 13:02 rolandjitsu

I have just opened a pull request that fixes this.

hgabreu avatar Feb 08 '16 14:02 hgabreu

Hi, i have the same problem. We have one final solution?

JorgeSegtowich avatar Jul 26 '18 11:07 JorgeSegtowich