Selectable datatable


Topic: Selectable datatable

ozgehan pro premium priority asked a year 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 a year 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 pro premium priority answered a year 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 a year 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 pro premium priority answered a year ago

Hi Mikolaj, Is there an update about this bug?


Mikołaj Smoleński staff commented a year 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.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

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