Selectable datatable


Topic: Selectable datatable

ozgehan asked 3 weeks ago

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.enter image description hereBut datatable directly back on the first page. enter image description hereI 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?


Mikołaj Smoleński staff commented 3 weeks ago

Do you have search and fieldName data variables? Are you sure that field is equal to one of the columns field key? In the example above it could be name, postion, office etc. Best regards


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


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • 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