Topic: Selectable datatable
Hi,I have problem with datatable's selected event.When a row is selected in the datatable, even if it is a 2nd page, the page is updated and returns to 1 page.Ichoose this data which is second page.
But datatable directly back on the first page.
I use like this.
<mdb-datatable-2
v-model="data"
selectable
@selected="setSelectedRow2"
:searching="{ value: search, field: fieldName }"
/>
But I remove the
:searching="{ value: search, field: fieldName }"
Datatable work correctly.But I want these both features selectable and searchable. How can I fix this problem?
ozgehan
answered 3 weeks ago
Yes I am sure.And also I try like this .
:searching="{ value: search, field: 'office' }"
But there is no difference.
Mikołaj Smoleński staff commented 3 weeks ago
Ok, I could recreate the issue. Unfortunately, there is no option for hotfix. I'm adding the issue to our Bug List for future release's. Best regards
Answered
- User: Free
- Premium support: No
- Technology: Vue
- MDB Version: 6.7.1
- Device: Computer
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No
Mikołaj Smoleński staff commented 3 weeks ago
Do you have
searchandfieldNamedata variables? Are you sure thatfieldis equal to one of the columns field key? In the example above it could bename,postion,officeetc. Best regards