Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to add checkboxes to custom DataGrid

    General Discussion
    2
    5
    278
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TheBlindHawk last edited by

      Hello,

      I am trying to add some checkboxes at the start of each row on a custom datagrid, but can't make it work. I am now trying to add checkboxes via js window.onload, but I don't think it is the best approach (nor is it working).
      Can anyone help me out?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by devansh-webkul

        Hi @TheBlindHawk,

        Please check this docs,
        https://devdocs.bagisto.com/1.x/advanced/datagrid.html

        T 2 Replies Last reply Reply Quote 0
        • T
          TheBlindHawk @devansh-webkul last edited by

          Hi@devansh-webkul

          Thank you for the reply, unfortunately there is no documentation on how to add checkboxes in the link you sent me.
          After a bit of looking around I decided that the best way to add checkboxes was probably to customize the src/packages/Webkul/Ui/src/DataGrid/DataGrid.php file.
          I am now working on it, but please share if you have any tips on how to.

          1 Reply Last reply Reply Quote 0
          • T
            TheBlindHawk @devansh-webkul last edited by

            @devansh-webkul

            My bad, I did not notice the enable mass actions boolean.
            I am now checking it out.

            1 Reply Last reply Reply Quote 0
            • devansh-webkul
              devansh-webkul last edited by

              Exactly.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post