ng-table icon indicating copy to clipboard operation
ng-table copied to clipboard

Using Dynamic Columns (example#20) doesn't show filters

Open MayaGi opened this issue 12 years ago • 10 comments

MayaGi avatar Mar 27 '14 17:03 MayaGi

+1 I'm having this problem too.

It looks like the problem stems from the fact that the directive does not compile body or head row elements before trying to parse attributes. When using example #20 you use ng-repeat to create the custom header and rows but the directive doesn't notice these and so doesn't go through the procedure of creating columns from parsed attributes in the rows.

FoxxMD avatar Apr 10 '14 15:04 FoxxMD

I worked around it by adding another tr for the filters:

{{column.title}}

MayaGi avatar Apr 10 '14 16:04 MayaGi

That code is pretty unreadable...how did you get each input element to act as a filter?

FoxxMD avatar Apr 10 '14 17:04 FoxxMD

I add filters row in example#20

esvit avatar Apr 12 '14 21:04 esvit

Does anyone find a solution about this?

tachun avatar Apr 15 '14 14:04 tachun

Filtering works fine but cannot figure out how to make Sortable work with dynamic header. It won't show the input element when using to show a dynamic header.

cyrixmorten avatar May 09 '14 22:05 cyrixmorten

this was my w\a. http://plnkr.co/edit/z12eFSgcBwxws6pWR8ar?p=preview

MayaGi avatar May 18 '14 13:05 MayaGi

@MayaGi: works like a charm. Thanks a lot! Its just missing a Pagination update in getData function: params.total(filteredData.length);

Marcel-Malus avatar Aug 15 '14 10:08 Marcel-Malus

@esvit , any update on this?

asadabbas88 avatar Nov 25 '14 14:11 asadabbas88

This would be a nice feature to enable localization of table headers

2014-11-25 15:55 GMT+01:00 Asad Abbas [email protected]:

any update on this?

— Reply to this email directly or view it on GitHub https://github.com/esvit/ng-table/issues/258#issuecomment-64411017.

cyrixmorten avatar Nov 25 '14 16:11 cyrixmorten