Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqGrid or dataTable, which better? [closed]

i'm interest to use jQuery dataTable... could you tell me and give me an example how to use that..and i've been heard about jqGrid too..which better from both of them?

i've been try to download dataTable..

<script type="text/javascript" src="jquery.dataTables.js"></script> <script type="text/javascript">  $(document).ready(function() {   $('#showdata').dataTable( {  //what must i fill in this area? }); }); </script> 
like image 908
klox Avatar asked Jun 22 '10 07:06

klox


People also ask

What is better than DataTables?

The best alternative is jQuery Dynatable. It's not free, so if you're looking for a free alternative, you could try List. js or Webix DataTable. Other great apps like DataTables are Frappe DataTable, Dash DataTable, wpDataTables and ag-Grid.

What is the use of jqGrid?

jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web.


1 Answers

I've tried both and decided to use datatables. I found it has better documentation, better community support and it was more straightforward to start and use this plugin.

Basically if you have html code like this:

<table>     <thead>         <tr>...</tr>     </thead>     <tbody>        <tr>...     </tbody> </table> 

(mind thead and tbody)

Then yours example should generate nice datatable. There are numbers of parameters to customize it but it is optional to use them.

You should also consider if you want to generate your datatable based on:

  1. static html content (load once)
  2. content received from your server

Both options are possible with datatables and both have many examples on datatables.net.

In case of any problem drop an info with the details.

like image 181
dzida Avatar answered Oct 13 '22 06:10

dzida