daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 519 forks source link

Load table with rows pre-selected #274

Closed GBora closed 8 years ago

GBora commented 8 years ago

Hello, I have a situation where I want to arrive at the table and have some rows already selected, I have the array of id's I want to select but when I use it as the model for the row select the rows are not selected.

Is it possible to select some rows from default based on already existing data ?

daniel-nagy commented 8 years ago

Yes, the binding goes both ways so all you have to do is put the items into your selected array.

GBora commented 8 years ago

Ok thank you for confirming my suspicions, I guess there's some amateur mistake I made in setting up the directives, I'll close this now.

JorgeSegtowich commented 6 years ago

u have exemple?