David-Mulder / paper-datatable

A material design implementation of a data table.
GNU General Public License v3.0
237 stars 92 forks source link

Issue while sorting columns #133

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi ,

I am facing issue while sorting the columns in paper-datatable .

polymer-mini.html:2128 Uncaught TypeError: Cannot set property '_pdt_getArrayItemLabel' of undefined at HTMLElement._registerEvilFunctions (paper-datatable-column.html:424) at HTMLElement. (paper-datatable.html:517) at polymer.html:1304 at Object._atEndOfMicrotask (polymer-mini.html:2122)

I tried to debug the code and ended up with this.dataHost undefined . So please help me out how can i resolve this issue

I used Ng2 and Polymer 1

"dependencies": { "paper-elements": "^1.0.7", "paper-datatable": "^0.9.8", "iron-icons": "^1.2.1" }, "resolutions": { "polymer": "^1.1.0", "paper-styles": "^1.0.0" }

santosh532 commented 7 years ago

having similar issue while trying to sort the columns Uncaught TypeError: Cannot set property '_pdt_getArrayItemLabel' of undefined

dhrytsenko commented 7 years ago

Take a look at our datatable. It have few fixed issues and maybe it'll be useful for you.

santosh532 commented 7 years ago

Thanks @dhrytsenko. Included your datatable but i still have the same issue

polymer-mini.html:2055 Uncaught TypeError: Cannot set property '_pdt_getArrayItemLabel' of undefined
    at HTMLElement._registerEvilFunctions (bwt-datatable-column.html:421)
    at HTMLElement.<anonymous> (bwt-datatable.html:618)
    at polymer.html:1363
    at Object._atEndOfMicrotask (polymer-mini.html:2049)
    at MutationObserver.window.MutationObserver.observe.characterData (polymer-mini.html:2064)
dhrytsenko commented 7 years ago

Can you show me your data which you set to datatable as a data-source?