Selectable datatable


Topic: Selectable datatable

ozgehan asked 5 months 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 5 months 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 5 months 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 5 months 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


ozgehan answered 1 months ago

Hi Mikolaj, Is there an update about this bug?


Mikołaj Smoleński staff commented 1 months ago

We made a new Datatable for MDB5 which does not have this issue. The datatable in MDB4 is still waiting for this fix.

Keep coding,  Mikołaj from MDB


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.1
  • Device: Computer
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No