Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data rows not displaying until clicking column sort. #173

Open
chisholmd opened this issue Nov 26, 2016 · 1 comment
Open

data rows not displaying until clicking column sort. #173

chisholmd opened this issue Nov 26, 2016 · 1 comment

Comments

@chisholmd
Copy link

chisholmd commented Nov 26, 2016

I am using iron-data-table successfully in one script but in another I have some weird behavior. The table columns display but there are no data rows. I have confirmed that the items variable is populated with valid json. If I click on a column heading then all the rows display and the table goes to full width.

I tried setting the sort in js after the items variable is populated but that didn't work. the column label is bold but still no data rows display

Ideas? What am I missing?

@lluisgener
Copy link

Try adding this to iron-data-table:

  attached: function() {
    this.async(function() {
      var tmp = this.$.list.firstVisibleIndex; 
      this.$.list.scrollToIndex(tmp); 
    }.bind(this), 100);
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants