Bagisto Forum

    Bagisto

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

    Add Group By in admin side grid

    General Discussion
    2
    3
    312
    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.
    • P
      ppstech last edited by

      How can I add groupby clause to a particular column in grid, so that the data should be grouped and displayed in the same grouped wise.

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @ppstech

        We can do it using query builder.

        $queryBuilder = DB::table('table_name')
                ->select()
                ->groupBy();
        

        Thanks

        1 Reply Last reply Reply Quote 0
        • P
          ppstech last edited by ppstech

          hi @rahul ,
          I am not talking about the query. I want to show it in grid something like below.
          0f084906-eb20-486d-93e4-016686ce4730-image.png

          Is there any functionality in grid through which I can achieve it? does the grid support group by feature with drag & drop column? or I need to do it manually

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