Nice, sleek and intuitive. A grid control especially designed for bootstrap.

Overview

jQuery Bootgrid Plugin Build Status Bower version NuGet version NPM version Gratipay

Nice, sleek and intuitive. A grid control especially designed for bootstrap.

Getting Started

jQuery Bootgrid is a UI component written for jQuery and Bootstrap (Bootstrap isn't necessarily required).

Everything you need to start quickly is:

  1. Include jQuery, jQuery Bootgrid and Bootstrap libraries in your HTML code.
  2. Define your table layout and your data columns by adding the data-column-id attribute.
  3. Specify your data URL used to fill your data table and set ajax option to true directly on your table via data API.
<!DOCTYPE html>
<html>
    <head>
        <title>Demo</title>
        <meta charset="utf-8">
        <!-- Styles -->
        <link href="bootstrap.css" rel="stylesheet">
        <link href="jquery.bootgrid.css" rel="stylesheet">
    </head>
    <body>
        <table id="grid" data-toggle="bootgrid" data-ajax="true" data-url="/api/data/basic" class="table table-condensed table-hover table-striped">
            <thead>
                <tr>
                    <th data-column-id="id">ID</th>
                    <th data-column-id="name">Sender</th>
                </tr>
            </thead>
        </table>
        <!-- Scripts -->
        <script src="jquery.js"></script> 
        <script src="jquery.bootgrid.js"></script>
    </body>
</html>

For more information check the documentation.

Examples

Examples you find here.

Reporting an Issue

Instructions will follow soon!

Asking questions

I'm always happy to help answer your questions. The best way to get quick answers is to go to stackoverflow.com and tag your questions always with jquery-bootgrid.

Contributing

Instructions will follow soon!

License

Copyright (c) 2014-2015 Rafael J. Staib Licensed under the MIT license.

Comments
  • BootGrid Command Buttons, Custom button bootstrap

    BootGrid Command Buttons, Custom button bootstrap

    How can I put custom button (Style Bootstrap) in the row "Command"

    < th data-column-id="commands" data-formatter="commands" data-sortable="false">Commands < /th >

    < td class="text-left"> < button type="button" class="btn btn-default" aria-label="Left Align" > < span class="glyphicon glyphicon-align-left" aria-hidden="true" >< /span > < /button > < /td >

    When Run the Application don't show me the button in that row. any suggestion?

    invalid 
    opened by pabloso18 22
  • Bootgrid pagination and search not working

    Bootgrid pagination and search not working

    I am trying to get data from json using bootgrid, the data can be display to grid, but its pagination and search are not working. I tried to debug, but no error was displayed.

    $(document).ready(function(){ $("#grid-command-buttons").bootgrid( { ajax: true, url: "/newspider/test.do", }); })

    In servlet , I use out.print(jsonObject) to html,could you tell me why not working?

    help wanted 
    opened by MarlonWilkes 14
  • Custom rows according value

    Custom rows according value

    How can I customize the rows according to some value in my JSON response.

    I have an attribute in my objects that tells me which object are enabled or disabled.

    With this value in hand I want to change the entire row color.

    What is the better way to do that?

    My regards Amandio Magalhães.

    And happy new year.

    question 
    opened by amandiobm 14
  • Excel/CSV Support?

    Excel/CSV Support?

    Is there any way i can get the data from the grid (full record set or search filtered data) and use it to convert to something like csv or does the grid support excel export?

    opened by surgiie 11
  • pagination issue for ajax based tables

    pagination issue for ajax based tables

    The current post variable is not the same for next/prev links and the page number links. Clicking page 2 results in sending current variable as 2 (which is ok) but when clicking next link while on page 1 results in sending 11. This makes server-side processing impossible since we have 2 different values 2 and 11. Can you please fix this.

    help wanted 
    opened by musen 9
  • Unable to reinitialize the grid

    Unable to reinitialize the grid

    on selecting a particular date range and clicking a button "populate" a ajax call populates the grid. But if I changes the date range and click populate the grid doesn't get reinitialize. The data on the grid shows the records of the previous data range. Grid doesn't get reinitialize. How to do reinitialize the grid??

    question 
    opened by divyakarkera001 8
  • Send RQ to server as JSON

    Send RQ to server as JSON

    It would be nice to have that feature build-in. Currently when I'm sending JSON as string from requestHandler, the contentType is set to "application/x-www-form-urlencoded", which cannot be interpreted correctly on server-side.

    enhancement 
    opened by latuszek 7
  • Default sort behavior

    Default sort behavior

    Hi rstaib, basically I want to be able to control which column should be used for sorting by default. I've tried using http://www.jquery-bootgrid.com/Documentation#methods > sort, but don't seem to be able to make it work? Any hint will be appreciated?

    Cheers!

    question 
    opened by BoboITCov 6
  • POST should not be used when querying the server

    POST should not be used when querying the server

    I think the decision to use POST to submit page and search parameters to the server is not only incompatible with REST (see here for a discussion http://restcookbook.com/HTTP%20Methods/put-vs-post/), it also makes it awkward to design a decent REST service and worst of all it breaks caching.

    I would like for example my bootgrid to query my service at /stuff/ and when I want to add to stuff I can just POST to /stuff/. Right now, even though this is feasible, I need to differentiate based on the POST body, which is far from ideal.

    Is there a chance to revert the decision and use GET at all times when bootgrid reads data ?

    enhancement 
    opened by nedosa 6
  • Displaying HTML in a table cell?

    Displaying HTML in a table cell?

    I have a situation where I need to display HTML links in a table cell. I've experimented with using a formatter like your commands example. The problem is that I need to check user permissions as I build the links, so I need to build the HTML on the backend instead of in the js. Any suggestions?

    question 
    opened by avlcodemonkey 6
  • How Can I use the Bootstrap Modal in bootgrid Command button

    How Can I use the Bootstrap Modal in bootgrid Command button

    I am trying open bootstrap modal in command edit and delete button.

    command button

    It doesn't work data-toggle="modal" data-target="#confirmation"

    Here my jQuery Code $( document ).ready(function() { $("#grid-plant").bootgrid({ caseSensitive: false, columnSelection: false,

            formatters: {
                "commands": function (column, row) {
                    return "<button type=\"button\" class=\"btn btn-xs btn-default command-edit\"  data-toggle=\"modal\" data-target=\"#confirmation\"><span class=\"fa fa-pencil\"></span></button> " +
                        "<button type=\"button\" class=\"btn btn-xs btn-default command-delete\" ><span class=\"fa fa-trash-o\"></span></button>";
                }
            }
        })
        });
    
    opened by jeysinghanbu 5
  • Passing json variable to bootgrid  table

    Passing json variable to bootgrid table

    I am trying to use ajax function in codeignitor to fetch data from the database and show the results in the bootgrid table. I received a valid json from controller. My json response is https://pastebin.com/As7gehP6

    My script :

                $(function() {
                            var data = {
                                csrfName: csrfHash
                            };
                            $.ajax({
                                    type: 'POST',
                                    data: data,
                                    dataType: "json",
                                    url: '<?php echo base_url();?>Cinvoice/CheckProfarmaInvoiceList',
                                    success: function(json, statut) {
                
                                        localStorage.setItem('json', JSON.stringify(json));
                                    });
                            });
    
    
                  var grid = $("#document_data").bootgrid({
                      ajax: false,
                      url: '<?php echo base_url();?>Cinvoice/CheckProfarmaInvoiceList'
                  }); 
    
                 grid.bootgrid('append', localStorage.getItem('json'));
    

    But data is not displaying in bootgrid table,the table is empty and Showing 1 to 10 of 1792 entries My output is : git

    Kindly helpme to solve this issue.

    opened by amoriotechnology 0
  • How to use styling in bootgrid?

    How to use styling in bootgrid?

    var grid = $("#tblVentas").bootgrid({ labels: { all: "todos", infos: "", loading: "Cargando datos...", noResults: "Ningun resultado encontrado", refresh: "Actualizar", search: "Buscar" }, styling: { columnHeaderText: 'text-center' }, ajax: true, post: function (){ return { '_token': $("meta[name='csrf-token']").attr('content'), id: "b0df282a-0d67-40e5-8558-c9e93b7befed" } }, url: "listar-ventas", formatters: { "commands": function(column, row){ return } } }).on("loaded.rs.jquery.bootgrid", function(){ /* poner el focus en el input de busqueda */ $("#tblVentas-header > div > div > div.search.form-group > div > input").trigger('focus') });

    this does not work, the option styling, as in the documentation.

    opened by danteCortes 1
  • Jquery Bootgrid Header Checkbox(Hide/Show) Table columns Customize and place in userdefined Dropdown?

    Jquery Bootgrid Header Checkbox(Hide/Show) Table columns Customize and place in userdefined Dropdown?

    Is it possible to customize and place in new button grp yellow button. I'm able to change css but i'm not able to place it in some other div or position

    I need only Item-check Dropdown , I don't require page interval , refresh and search

    image Gogi-Admin-and-Dashboard-Template

    opened by kraravind167 0
  • how to delete row in Jquery boot grid

    how to delete row in Jquery boot grid

    After adding rows to bootgrid ,I want to delete row from the grid with Json object.

    I tried to get rows using var rows=$("#grid-filterFields").bootgrid("getCurrentRows"); which gives me array of Json Objects. I want to remove row which matches to JSON object i provide.

    Please let me know how can i do this. I tried with this method,but no luck $("#grid-filterFields").bootgrid("remove", removableJsonData);

    opened by ajaychig 0
  • Jquery bootgrid icon is not displaying in web app

    Jquery bootgrid icon is not displaying in web app

    I am integrating Jquery bootgrid in my we application but icon are not displaying properly even the search box is also not displaying properly. Please find the screen sort below : Please help me with this.

    image

    opened by priyank-eschool 1
Releases(1.3.1)
  • 1.3.1(Sep 11, 2015)

    Enhancements & Features

    • Replaced href attributes in order to prevent hash tags so angular JS works proper; see issue #69 for more details

    Breaking Changes

    There are no breaking changes but some HTML templates changed during development. In case you want to use the full new feature set be sure you did not override any affected (actionDropDownItem and paginationItem) templates.

    Source code(tar.gz)
    Source code(zip)
  • 1.3.0(Sep 4, 2015)

  • 1.2.0(May 12, 2015)

    Enhancements & Features

    • Configurable column width; see issue #22 for more details
    • Contextual classes to color rows; see issue #72 for more details
    • FontAwesome iconset overload
    • Clear search filter method #89
    • Overridable ajax request settings; see issue #27 for more details
    • Adjusting search input field to perform search not on every key #109
    • Public getters for internal variables; see issues #121 and #116 for more details
    • Noticeable flicker on any table update #118 (Partially improved by deferring loading mask)

    Bug Fixes

    • Fixed bug #120
    • Fixed bug #58 by using the pull request #65
    • Fixing sort method for jQuery plugin #84

    Breaking Changes

    There are no breaking changes but some HTML templates changed during development. In case you want to use the full new feature set be sure you did not override any affected templates.

    Source code(tar.gz)
    Source code(zip)
  • 1.1.4(Nov 23, 2014)

    This release doesn't contain any code changes and consits of 2 commits.

    Enhancements & Features

    • Improved Bower and NPM packages (unecessary files excluded and renamed folder build to dist)
    • Added minified version for the jquery.bootgrid.css file
    Source code(tar.gz)
    Source code(zip)
Owner
Rafael Staib
Independent Software Architect/Engineer with over 15 years experience in professional Software Development and Automation.
Rafael Staib
Grid based on CSS3 flexbox

Flexbox Grid flexboxgrid.com Grid based on the flex display property. Install npm npm i flexboxgrid --save bower bower install flexboxgrid cdn CDNJS <

kj 9.3k Dec 31, 2022
jQuery grid plugin

jqGrid jQuery grid plugin jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the w

Tony Tomov 2.8k Jan 7, 2023
Lightweight Grid jQuery Plugin

jsGrid Lightweight Grid jQuery Plugin Project site js-grid.com jsGrid is a lightweight client-side data grid control based on jQuery. It supports basi

Artem Tabalin 1.5k Dec 31, 2022
A simple, modern and interactive datatable library for the web

Frappe DataTable A modern datatable library for the web Introduction Frappe DataTable is a simple, modern and interactive datatable library for displa

Frappe 836 Dec 24, 2022
Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.

English| 简体中文 Introduction ?? Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source. Links

mengshukeji 12.7k Dec 31, 2022
A stupidly small and simple jQuery table sorter plugin

Stupid jQuery Table Sort This is a stupid jQuery table sorting plugin. Nothing fancy, nothing really impressive. Overall, stupidly simple. Requires jQ

Joseph McCullough 708 Dec 26, 2022
jQuery plugin to export a html table to JSON, XML, CSV, TSV, TXT, SQL, Word, Excel, PNG and PDF

tableExport.jquery.plugin Export HTML Table to CSV DOC JSON PDF PNG SQL TSV TXT XLS (Excel 2000 HTML format) XLSX (Excel 2007 Office Open XML format)

null 918 Dec 29, 2022
Shrinks any large data tables into compact and responsive tables

jquery.table-shrinker A Jquery plugin to make HTML Table responsive across all devices, the right way! Demo Click here to see the demo, remember to re

null 29 Sep 11, 2022
tb-grid is a super simple and lightweight 12 column responsive grid system utilizing css grid.

tb-grid Lightweight (<1kb gzipped) 12 column grid system, built with css grid. ?? Demos & Playground Have a look at those examples: Main Demo: https:/

Taskbase 26 Dec 28, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Grid-tool - Small tool that allows you to integrate a predefined or generated grid into your front-end development environment.

Grid tool Small tool that allows you to integrate a predefined or generated grid into your front-end development environment. Tool installation includ

hmongouachon 2 Jan 4, 2022
Playful and Colorful One-Page portfolio featuring Parallax effects and animations. Especially designers and/or photographers will love this theme! Built with MDX and Theme UI.

Gatsby Starter Portfolio: Cara Playful and Colorful One-Page portfolio featuring Parallax effects and animations. Using the Gatsby Theme @lekoarts/gat

prashanth s 1 Dec 24, 2021
Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4.

Bootstrap Tooltip Custom Class Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4. Define you

Andrei Victor Bulearca 14 Feb 10, 2022
A simple Form Validation Utility for Bootstrap 3, Bootstrap 4, and Bootstrap 5 for Humans.

bootstrap-validate A simple Form Validation Utility for Bootstrap 3, Bootstrap 4, and Bootstrap 5 for Humans. ?? Support us with Developer Merchandise

null 138 Jan 2, 2023
Bootstrap-select - Shim repository for Bootstrap-select that works with bootstrap 4.

bootstrap-select Bootstrap-select is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard sel

Heimrich & Hannot GmbH 35 Aug 27, 2022
The best way to quickly integrate Bootstrap 5 Bootstrap 4 or Bootstrap 3 Components with Angular

ngx-bootstrap The best way to quickly integrate Bootstrap 5 Bootstrap 4 or Bootstrap 3 Components with Angular Links Documentation Release Notes Slack

Valor Software 5.4k Jan 8, 2023
Turn any dynamic website (especially wordpress) into a fast, secure, stable static site

Static site publisher Turn any dynamic website (especially wordpress) into a fast, secure, stable static site Reduced complexity - no need to run simp

Alex Ivkin 7 Apr 6, 2022