JqGrid or dataTable, which is better?

I am interested in using jQuery dataTable ... could you tell me and give me an example how to use this ... And I also heard about jqGrid..which is better from both of them?

I tried to load 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> 
+36
jquery datatables
Jun 22 2018-10-22T00:
source share
5 answers

I tried both and decided to use datatables . I found that it has improved documentation, better community support, and it was easier to get started and use this plugin.

Basically, if you have html code:

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

(mind thead and tbody )

Then your example should generate a good datatable. There are several options for configuring it, but they are optional.

You should also consider whether you want to create your datatable based on:

  • static html content (download once)
  • content received from your server.

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

If you encounter any problems, delete the details information.

+36
Jun 22 '10 at 9:40
source share

jqgrid seems more powerful and flexible, however, scary documentation. Unless you have someone who can help with jqGrid, you are better off with a datatable.

+16
Dec 05 '10 at 23:17
source share

I also use DataTables. I was attracted to documents, api and flexibility. In my project, I have an ajax front end, where the table contains editable controls and sorting / filtering columns. Some grids have all the data on the client, some of them retrieve their data from the call calls on the server, depending on the amount of data.

The developer has full control over the rendering of columns. I recommend it if you need flexibility. It's worth it. The author, Allan Jardine, is clearly very talented.

+10
Nov 29 '10 at 21:37
source share

I started using datatables, but loading and sorting a few hundred local elements very slowly. So I tried jqgrid and it works great with thousands of locally loaded items. So jqgrid has better performance. But sometimes I need to work with tens of thousands of local elements, and jqgrid also slows down. I know that these plugins are designed to work with the client / server architecture, so I appreciate the design change of my application.

+8
Dec 02 '10 at 23:55
source share

My company only made the decision to go with DataTables also for all the reasons mentioned above. We evaluated it a few years ago, and it looks like many of these shortcomings that we found were identified by the team. This is not ideal, but I think that when we devote ourselves to studying inside and out, everything will be fine.

+5
Apr 15 2018-11-11T00:
source share



All Articles