Open Closed

Using rowCallback conflicts with rowAction at abp datatable #3040


User avatar
0
Dina created

Hi,

I m using an abp datatable in which i have rowActions for 2 buttons

it works normally, but when i added a rowCallback to the table (to make some rows with different color with specific condition) it makes the rowActions ignored for the 2 buttons, and they become invisible!!

so the rows are colored correctly, but there are no columns for the action items.

Please i want to fix this issue ASAP to use rowcallback normally with rowactions.

Thanks in advance

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you add a breakpoint and check this?

    https://github.com/abpframework/abp/blob/ce10de025ecb04512da86a15e585234bbc2fb07c/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js#L267

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    https://support.abp.io/QA/Questions/3040#answer-b59f67c9-1737-02db-e114-3a03c3ebf134

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Dina created

    i need a clarification, what should be modified at my datatable?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok, I will share some code, Please wait a moment.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    _dataTable = _$table.DataTable(
        abp.libs.datatables.normalizeConfiguration({
            order: [[1, 'asc']],
            processing: true,
            serverSide: true,
            scrollX: true,
            paging: true,
            ajax: abp.libs.datatables.createAjax(
                _identityUserAppService.getList
            ),
            columnDefs: abp.ui.extensions.tableColumns.get('identity.user').columns.toArray(),
            rowCallback: function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
                $.fn.dataTable.defaults.fnRowCallback.apply(this, [nRow, aData, iDisplayIndex, iDisplayIndexFull]);
            }
        })
    );
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Dina created

    it worked, thanks!

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You're welcome.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Dicky.tech@gmail.com created

    Any sample for database footer with totals ?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    Dicky.tech@gmail.com created

    Copy tenant data to a new tenant. This helps when you want to create a copy of an existing tenant to do some tests

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Any sample for database footer with totals ?

    The API has totalCount response. You can add it by yourself.

    https://datatables.net/examples/advanced_init/footer_callback.html

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.