question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List view doesn't rendering anything

See original GitHub issue

I am using SharePoint Framework React controls’s list view to render the items from document library. I am able to get the items from library by selecting the list from dropdown. But While rendering the items, it is not showing any items in the view. But, when i click on item I am able to write data in that row in console. It is rendering like below: spfx-reactcontrols_render I am using ListView like below

<ListView
            items={this.state.listData}           
            iconFieldName="ServerRelativeUrl"
            compact={true}
            selectionMode={SelectionMode.multiple}
            selection={this._getSelection}
             />   

[X] Question

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ymihircommented, Jan 5, 2018

Yes I have sorted out that issue. Thanks for the documentation update.

1reaction
estruyfcommented, Jan 4, 2018

@ymihir did you update the targetProperty to the property in your web part. This was incorrectly documented and updated it: https://sharepoint.github.io/sp-dev-fx-property-controls/controls/PropertyFieldListPicker/

So lists must be the same on line 1 (‘lists’) and 3 (this.properties.lists):

PropertyFieldListPicker('lists', {
  label: 'Select a list',
  selectedList: this.properties.lists,
  includeHidden: false,
  orderBy: PropertyFieldListPickerOrderBy.Title,
  disabled: false,
  onPropertyChange: this.onPropertyPaneFieldChanged.bind(this),
  properties: this.properties,
  context: this.context,
  onGetErrorMessage: null,
  deferredValidationTime: 0,
  key: 'listPickerFieldId'
})

If you copied it from the documentation, you would probably have singleList which is not correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django is not rendering ListView
The problem now is BlogList is not being rendered anymore, but we don't need BlogList anymore - we can create a queryset inside...
Read more >
ListView is not rendering items correctly in NextJS #2511
The error can be reproduced with an empty nextjs project. Resizing the window will have the items reappear. Your Environment. Software ...
Read more >
List view not rendering correctly until page resize
I've an odd problem when it comes to rendering a list of events. Theme is a child of Moesia Pro (from aThemes) and...
Read more >
Native listview not rendering all objects
I have an issue with a native application. I have a list view that should show 47 items. I can scroll down the...
Read more >
ListView.builder not rendering all elements
builder. When the listView is rebuild from list with bigger length than it was before(for example, it had 3 elements, now has 5),...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found