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

DataTable: onLazyLoad does not support sortMode="multiple" #157

Closed
david-bc opened this issue Oct 24, 2017 · 1 comment
Closed

DataTable: onLazyLoad does not support sortMode="multiple" #157

david-bc opened this issue Oct 24, 2017 · 1 comment
Labels
Type: Bug Issue contains a defect related to a specific component.

Comments

@david-bc
Copy link

<DataTable value={[]} rows={10} lazy={true} onLazyLoad={console.log} sortMode="multiple">
  <Column field="id" header="ID" sortable={true} />
  <Column field="name" header="Name" sortable={true} />
</DataTable>

screen shot 2017-10-24 at 11 45 39 am
screen shot 2017-10-24 at 11 45 48 am

@david-bc david-bc changed the title DataTable: lazy onLazyLoad does not support sortMode="multiple" DataTable: onLazyLoad does not support sortMode="multiple" Oct 24, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a defect related to a specific component. label Nov 1, 2017
@cagataycivici cagataycivici added this to the 1.1.1 milestone Nov 1, 2017
@cagataycivici
Copy link
Member

I'm unable to replicate with the following case;

<DataTable value={this.state.cars} paginator={true} rows={10} totalRecords={this.state.totalRecords}
                        lazy={true} onLazyLoad={this.onLazyLoad} sortMode="multiple">
                        <Column field="vin" header="Vin" sortable={true}/>
                        <Column field="year" header="Year" sortable={true}/>
                        <Column field="brand" header="Brand" sortable={true}/>
                        <Column field="color" header="Color" sortable={true}/>
                    </DataTable>

screen shot 2017-11-01 at 10 28 39

You need to use the multiSortMeta property in lazy load event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants