<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JSON Grid &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/json-grid/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Mon, 04 Jul 2016 12:17:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>JSON Grid &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Bind Json Data to JQWidget JQX Grid</title>
		<link>https://www.sibeeshpassion.com/bind-json-data-to-jqwidget-jqx-grid/</link>
					<comments>https://www.sibeeshpassion.com/bind-json-data-to-jqwidget-jqx-grid/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Thu, 18 Jun 2015 09:12:56 +0000</pubDate>
				<category><![CDATA[JQWidgets]]></category>
		<category><![CDATA[JQX Grid]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[Bind JSON to Grid]]></category>
		<category><![CDATA[Json]]></category>
		<category><![CDATA[JSON Grid]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=5081</guid>

					<description><![CDATA[Introduction Hi All, How are you today? Today we will learn how we can bind a Json data to JQWidget, JQX Grid. I hope you will like it. Downloads Download the source files here: BindJSONToGrid.rar Background If you are new to JQWidget JQX Grid, Please find out here: http://sibeeshpassion.com/category/jqwidgets/ Using the code Here I am using Visual Studio 2012. We will have a txt file in which we will have the JSON data, you can use this file or you can manually load Json data from server side. So let us start First of all we must include the needed [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Hi All, How are you today? Today we will learn how we can bind a Json data to JQWidget, JQX Grid. I hope you will like it.</p>
<p><strong>Downloads</strong></p>
<p>Download the source files here: <a href="http://sibeeshpassion.com/download/BindJSONToGrid.rar" target="_blank">BindJSONToGrid.rar</a></p>
<p><strong>Background</strong></p>
<p>If you are new to JQWidget JQX Grid, Please find out here: <a href="http://sibeeshpassion.com/category/jqwidgets/" target="_blank">http://sibeeshpassion.com/category/jqwidgets/</a></p>
<p><strong>Using the code</strong></p>
<p>Here I am using Visual Studio 2012. We will have a txt file in which we will have the JSON data, you can use this file or you can manually load Json data from server side.</p>
<p><strong>So let us start</strong></p>
<p>First of all we must include the needed files for the grid.</p>
<p>[html]<br />
 &lt;script src=&quot;jquery-1.9.1.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxcore.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxdata.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxbuttons.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxscrollbar.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxlistbox.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxdropdownlist.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxmenu.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.filter.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.sort.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.selection.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.pager.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.columnsresize.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.columnsreorder.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxgrid.export.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxdata.export.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script type=&quot;text/javascript&quot; src=&quot;JQXItems/jqwidgets/jqxdatatable.js&quot;&gt;&lt;/script&gt;<br />
    &lt;link href=&quot;JQXItems/jqwidgets/styles/jqx.base.css&quot; rel=&quot;stylesheet&quot; /&gt;<br />
[/html]</p>
<p>No we can start the grid implementation. For that create a ready function and add the codes as follows.<br />
[js]</p>
<p> &lt;script type=&quot;text/javascript&quot;&gt;<br />
        $(document).ready(function () {<br />
            // prepare the data<br />
            var data =<br />
            {<br />
                datatype: &quot;json&quot;,<br />
                datafields: [{ &quot;name&quot;: &quot;AreaCode&quot;, &quot;type&quot;: &quot;string&quot; }, { &quot;name&quot;: &quot;Revenue&quot;, &quot;type&quot;: &quot;number&quot; }],<br />
                //id: &#8216;id&#8217;,<br />
                url: &quot;jsonData.txt&quot;<br />
            };<br />
            $(&quot;#jqxgrid&quot;).jqxGrid(<br />
                  {<br />
                      source: data,<br />
                      columns: [{ &quot;text&quot;: &quot;Area Code&quot;, &quot;dataField&quot;: &quot;AreaCode&quot;, &quot;cellsalign&quot;: &quot;left&quot;, &quot;cellsformat&quot;: &quot;d&quot; }, { &quot;text&quot;: &quot;Revenue&quot;, &quot;dataField&quot;: &quot;Revenue&quot;, &quot;cellsalign&quot;: &quot;right&quot;, &quot;cellsformat&quot;: &quot;c2&quot; }],<br />
  pageable: true,<br />
                      filterable: true,<br />
                      sortable: true<br />
                  });<br />
        });<br />
    &lt;/script&gt;</p>
<p>[/js]</p>
<p>Now what else we need? Yes, we need to create a div where we can render our grid.</p>
<p>[html]<br />
 &lt;h2&gt;Bind Json Data to JQwidgets JQX grid &#8211; Sibeesh Passion&lt;/h2&gt;<br />
    &lt;div id=&quot;jqxgrid&quot;&gt;&lt;/div&gt;<br />
[/html]</p>
<p>What about our data? We have not seen our data right? </p>
<p>[js]<br />
[{&quot;AreaCode&quot;:&quot;B697-31&quot;,&quot;Revenue&quot;:12747128.190000001},{&quot;AreaCode&quot;:&quot;B697-92&quot;,&quot;Revenue&quot;:7922559.1600000048},{&quot;AreaCode&quot;:&quot;B697-76&quot;,&quot;Revenue&quot;:7541039.540000001},{&quot;AreaCode&quot;:&quot;B697-46&quot;,&quot;Revenue&quot;:7076495.5800000066},{&quot;AreaCode&quot;:&quot;B553-131&quot;,&quot;Revenue&quot;:5738816.5099999979},{&quot;AreaCode&quot;:&quot;B553-193&quot;,&quot;Revenue&quot;:4608556.52},{&quot;AreaCode&quot;:&quot;B697-74&quot;,&quot;Revenue&quot;:3895194.1099999994},{&quot;AreaCode&quot;:&quot;D158-233&quot;,&quot;Revenue&quot;:3572808.989999996},{&quot;AreaCode&quot;:&quot;B697-78&quot;,&quot;Revenue&quot;:3512657.6999999937},{&quot;AreaCode&quot;:&quot;B672-31&quot;,&quot;Revenue&quot;:2955916.9800000032},{&quot;AreaCode&quot;:&quot;B553-46&quot;,&quot;Revenue&quot;:2806813.7100000042}]<br />
[/js]</p>
<p>All set now. So shall we see the grid now?</p>
<p><strong>Output</strong></p>
<p><img decoding="async" src="http://sibeeshpassion.com/content/images/bndjsn1.PNG" alt="" /></p>
<p><strong>Things to remember</strong></p>
<p>Make sure that your  data type is json in source object.</p>
<p>[js]<br />
datatype: &quot;json&quot;<br />
[/js]</p>
<p>Make sure your json is valid</p>
<p><strong>Conclusion</strong></p>
<p>I hope you will like this article. Please share me your valuable thoughts and comments. Your feedback is always welcomed.</p>
<p>Thanks in advance. Happy coding!</p>
<p>Kindest Regards<br />
<a href="https://plus.google.com/+sibeeshkv" target="_blank">Sibeesh Venu</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/bind-json-data-to-jqwidget-jqx-grid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Advanced JQX Grid With All Functionality</title>
		<link>https://www.sibeeshpassion.com/advanced-jqx-grid-with-all-functionality/</link>
					<comments>https://www.sibeeshpassion.com/advanced-jqx-grid-with-all-functionality/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 29 Oct 2014 19:05:41 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JQWidgets]]></category>
		<category><![CDATA[JQX Grid]]></category>
		<category><![CDATA[Products]]></category>
		<category><![CDATA[Advanced Grid]]></category>
		<category><![CDATA[Client Side Grid]]></category>
		<category><![CDATA[Grid]]></category>
		<category><![CDATA[HTML Grid]]></category>
		<category><![CDATA[JQwidget Property]]></category>
		<category><![CDATA[JSON Grid]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=431</guid>

					<description><![CDATA[In this article we will see how we can implement or create a JQWidget&#8217;s JQX grid in our application. It is a client side grid which is good in performance and speed. We will see the advanced properties of a JQWidget JQX gris in this article. This article has been selected as Asp.Net Community Article of the Day Sunday January 11 ,2015. If you are new to the term JQX Grid then please find out the articles related to JQWidget category here: http://sibeeshpassion.com/category/products/jqwidgets/ If you need to bind the data source dynamically, please read here: http://sibeeshpassion.com/Convert-CellSet-to-HTML-table-And-From-HTML-To-Json-To-Array. For the past days [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this article we will see how we can implement or create a JQWidget&#8217;s JQX grid in our application. It is a client side grid which is good in performance and speed. We will see the advanced properties of a JQWidget JQX gris in this article.</p>
<p><em>This article has been selected as <a href="http://asp.net/community/articles" target="_blank">Asp.Net Community Article of the Day</a> Sunday January 11 ,2015.</em></p>
<p>If you are new to the term JQX Grid then please find out the articles related to JQWidget category here: <a href="http://sibeeshpassion.com/category/products/jqwidgets/" target="_blank">http://sibeeshpassion.com/category/products/jqwidgets/</a></p>
<p>If you need to bind the data source dynamically, please read here: <a href="http://sibeeshpassion.com/Convert-CellSet-to-HTML-table-And-From-HTML-To-Json-To-Array" target="_blank">http://sibeeshpassion.com/Convert-CellSet-to-HTML-table-And-From-HTML-To-Json-To-Array</a>. For the past days I have been working on JQX Grid. Now I will share that Grid with all the functionality.</p>
<p><strong>Download the source code</strong></p>
<li><a href="https://code.msdn.microsoft.com/Advanced-JQX-Grid-With-All-37dccb56" target="_blank">Advanced JQXGrid </a></li>
<p><strong>Background</strong></p>
<p>In my previous article, one member asked for some functionality. So I thought of sharing that info. Please note that I have not implemented all the functionalities. I have selected some important features that we may use in our programming life.</p>
<p><strong>Using the code</strong></p>
<p>As we discussed in the previous articles, we need a web application with all the contents of JQX Widgets (<a href="http://sibeeshpassion.com/working-with-jqx-grid-with-filtering-and-sorting/" target="_blank">http://sibeeshpassion.com/working-with-jqx-grid-with-filtering-and-sorting/</a> ).</p>
<p><strong>What is JQX Grid?</strong></p>
<p>jqxGrid is powerful datagrid widget built entirely with open web standards. It offers rich functionality, easy to use APIs and works across devices and browsers. jqxGrid delivers advanced data visualization features and built-in support for client and server-side paging, editing, sorting and filtering.</p>
<p><strong>What we need?</strong></p>
<p><em>Simple HTML</em><br />
[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html lang=“en”&gt;<br />
   &lt;head&gt;<br />
       &lt;title&gt;&lt;/title&gt;<br />
   &lt;/head&gt;<br />
   &lt;body&gt;<br />
   &lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p><strong>Include the extra UI elements</strong><br />
[html]<br />
&lt;body class=‘default’&gt;<br />
    &lt;div id=‘jqxWidget’ style=“font-size: 13px; font-family: Verdana; float: left;”&gt;<br />
        &lt;div id=“jqxgrid”&gt;&lt;/div&gt;<br />
        &lt;div style=‘margin-top: 20px;’&gt;<br />
            &lt;div style=‘float: left;’&gt;<br />
                &lt;input type=“button” value=“Export to Excel” id=‘excelExport’ /&gt;<br />
                &lt;br /&gt;&lt;br /&gt;<br />
                &lt;input type=“button” value=“Export to XML” id=‘xmlExport’ /&gt;<br />
            &lt;/div&gt;<br />
            &lt;div style=‘margin-left: 10px; float: left;’&gt;<br />
                &lt;input type=“button” value=“Export to CSV” id=‘csvExport’ /&gt;<br />
                &lt;br /&gt;&lt;br /&gt;<br />
                &lt;input type=“button” value=“Export to TSV” id=‘tsvExport’ /&gt;<br />
            &lt;/div&gt;<br />
            &lt;div style=‘margin-left: 10px; float: left;’&gt;<br />
                &lt;input type=“button” value=“Export to HTML” id=‘htmlExport’ /&gt;<br />
                &lt;br /&gt;&lt;br /&gt;<br />
                &lt;input type=“button” value=“Export to JSON” id=‘jsonExport’ /&gt;<br />
            &lt;/div&gt;<br />
            &lt;div style=‘margin-left: 10px; float: left;’&gt;<br />
                &lt;input type=“button” value=“Print” id=‘print’ /&gt;<br />
            &lt;/div&gt;<br />
        &lt;/div&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
[/html]</p>
<p><strong>Include Reference</strong></p>
<p>[html]<br />
&lt;link rel=“stylesheet” href=“jqwidgets/styles/jqx.base.css” type=“text/css” /&gt;<br />
    &lt;script type=“text/javascript” src=“scripts/jquery-1.11.1.min.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxcore.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxdata.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxbuttons.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxscrollbar.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxlistbox.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxdropdownlist.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxmenu.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.filter.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.sort.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.selection.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxpanel.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxcheckbox.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“scripts/demos.js”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.pager.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.edit.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.columnsresize.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.columnsreorder.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.export.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxdata.export.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
[/html]</p>
<p><strong>What we add new?</strong><br />
[js]<br />
&lt;script src=“jqwidgets/jqxgrid.pager.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
[/js]</p>
<p>This script is for adding the functionality of Paging :). You can add the functionality to the grid as<br />
[js]<br />
pageable: true.<br />
[/js]</p>
<p>And if you want different stylish paging then you can set that like this:<br />
[js]<br />
pagermode: ‘simple’,<br />
[/js]<br />
[js]<br />
&lt;script src=“jqwidgets/jqxgrid.edit.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
[/js]</p>
<p>This script is for adding the functionality of Editing :). You can add the functionality to the grid as<br />
[js]<br />
editable: true.<br />
[/js]<br />
[js]<br />
&lt;script src=“jqwidgets/jqxgrid.columnsresize.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
&lt;script src=“jqwidgets/jqxgrid.columnsreorder.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
[/js]</p>
<p>These scripts are for adding the functionality of Hierarchy columns. If we want to separate the data in the column header then you can include the following scripts.<br />
[js]<br />
&lt;script src=“jqwidgets/jqxgrid.export.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
&lt;script src=“jqwidgets/jqxdata.export.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
[/js]</p>
<p>When you want to export your grid to any formate, please include those scripts. You can implement the same just like the following:<br />
[js]<br />
$(“#excelExport”).jqxButton({ theme: theme }); //Assign styles to the button<br />
            $(“#xmlExport”).jqxButton({ theme: theme });<br />
            $(“#csvExport”).jqxButton({ theme: theme });<br />
            $(“#tsvExport”).jqxButton({ theme: theme });<br />
            $(“#htmlExport”).jqxButton({ theme: theme });<br />
            $(“#jsonExport”).jqxButton({ theme: theme });<br />
            $(“#excelExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xls’, ‘jqxGrid’); // To export to xlx<br />
            });<br />
            $(“#xmlExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xml’, ‘jqxGrid’); //To export to XML<br />
            });<br />
            $(“#csvExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘csv’, ‘jqxGrid’); // To export to csv<br />
            });<br />
            $(“#tsvExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘tsv’, ‘jqxGrid’); // To export to tsv<br />
            });<br />
            $(“#htmlExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘html’, ‘jqxGrid’); // To export to html<br />
            });<br />
            $(“#jsonExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘json’, ‘jqxGrid’); // To export to JSON<br />
            });<br />
[/js]</p>
<p>If you want to print your grid:<br />
[js]<br />
$(“#print”).jqxButton();<br />
            $(“#print”).click(function () {<br />
                var gridContent = $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘html’);<br />
                var newWindow = window.open(”, ”, ‘width=800, height=500′),<br />
                document = newWindow.document.open(),<br />
                pageContent =<br />
                    ‘&lt;!DOCTYPE html&gt;\n’ +<br />
                    ‘&lt;html&gt;\n’ +<br />
                    ‘&lt;head&gt;\n’ +<br />
                    ‘&lt;meta charset=”utf-8″ /&gt;\n’ +<br />
                    ‘&lt;title&gt;jQWidgets Grid&lt;/title&gt;\n’ +<br />
                    ‘&lt;/head&gt;\n’ +<br />
                    ‘&lt;body&gt;\n’ + gridContent + ‘\n&lt;/body&gt;\n&lt;/html&gt;’;<br />
                document.write(pageContent);<br />
                document.close();<br />
                newWindow.print();<br />
            });<br />
[/js]</p>
<p>Now we need data to populate the grid, right? Since we are familiar with a simple header JQX Grid from the previous article, now we can go for a hierarchy column grid. So let’s say we have XML as follows:</p>
<p>[xml]<br />
&lt;DATA&gt;<br />
    &lt;ROW&gt;<br />
        &lt;ProductID&gt;72&lt;/ProductID&gt;<br />
        &lt;SupplierName&gt;Formaggi Fortini s.r.l.&lt;/SupplierName&gt;<br />
        &lt;Quantity&gt;24 – 200 g pkgs.&lt;/Quantity&gt;<br />
        &lt;Freight&gt;32.3800&lt;/Freight&gt;<br />
        &lt;OrderDate&gt;1996-07-04 00:00:00&lt;/OrderDate&gt;<br />
        &lt;OrderAddress&gt;59 rue de l-Abbaye&lt;/OrderAddress&gt;<br />
        &lt;Price&gt;34.8000&lt;/Price&gt;<br />
        &lt;City&gt;Ravenna&lt;/City&gt;<br />
        &lt;Address&gt;Viale Dante, 75&lt;/Address&gt;<br />
        &lt;ProductName&gt;Mozzarella di Giovanni&lt;/ProductName&gt;<br />
    &lt;/ROW&gt;<br />
    &lt;ROW&gt;<br />
        &lt;ProductID&gt;42&lt;/ProductID&gt;<br />
        &lt;SupplierName&gt;Leka Trading&lt;/SupplierName&gt;<br />
        &lt;Quantity&gt;32 – 1 kg pkgs.&lt;/Quantity&gt;<br />
        &lt;Freight&gt;32.3800&lt;/Freight&gt;<br />
        &lt;OrderDate&gt;1996-07-04 00:00:00&lt;/OrderDate&gt;<br />
        &lt;OrderAddress&gt;59 rue de l-Abbaye&lt;/OrderAddress&gt;<br />
        &lt;Price&gt;14.0000&lt;/Price&gt;<br />
        &lt;City&gt;Singapore&lt;/City&gt;<br />
        &lt;Address&gt;471 Serangoon Loop, Suite #402&lt;/Address&gt;<br />
        &lt;ProductName&gt;Singaporean Hokkien Fried Mee&lt;/ProductName&gt;<br />
    &lt;/ROW&gt;<br />
    &lt;ROW&gt;<br />
        ……..<br />
    &lt;/ROW&gt;<br />
    &lt;ROW&gt;<br />
       ……..<br />
    &lt;/ROW&gt;<br />
&lt;/DATA&gt;<br />
[/xml]</p>
<p>Please find the <em>orderdetailsextended.xml</em> from the source.</p>
<p><strong>Implementing a JQX GRid with advanced features</strong><br />
[js]<br />
&lt;script type=“text/javascript”&gt;<br />
         $(document).ready(function () {<br />
             // prepare the data<br />
             var source =<br />
            {<br />
                datatype: “xml”,<br />
                datafields: [<br />
                     { name: ‘SupplierName’, type: ‘string’ },<br />
                     { name: ‘Quantity’, type: ‘number’ },<br />
                     { name: ‘OrderDate’, type: ‘date’ },<br />
                     { name: ‘OrderAddress’, type: ‘string’ },<br />
                     { name: ‘Freight’, type: ‘number’ },<br />
                     { name: ‘Price’, type: ‘number’ },<br />
                     { name: ‘City’, type: ‘string’ },<br />
                     { name: ‘ProductName’, type: ‘string’ },<br />
                     { name: ‘Address’, type: ‘string’ }<br />
                ],<br />
                url: ‘orderdetailsextended.xml’,<br />
                root: ‘DATA’,<br />
                record: ‘ROW’<br />
            };<br />
             var dataAdapter = new $.jqx.dataAdapter(source, {<br />
                 loadComplete: function () {<br />
                 }<br />
             });<br />
             // create jqxgrid.<br />
             $(“#jqxgrid”).jqxGrid(<br />
            {<br />
                width: 900,<br />
                source: dataAdapter,<br />
                filterable: true,<br />
                sortable: true,<br />
                pageable: true,<br />
                autorowheight: true,<br />
                altrows: true,<br />
                columnsresize: true,<br />
                columns: [<br />
                  { text: ‘Supplier Name’, cellsalign: ‘center’, align: ‘center’, datafield: ‘SupplierName’, width: 110 },<br />
                  { text: ‘Name’, columngroup: ‘ProductDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘ProductName’, width: 120 },<br />
                  { text: ‘Quantity’, columngroup: ‘ProductDetails’, datafield: ‘Quantity’, cellsformat: ‘d’, cellsalign: ‘center’, align: ‘center’, width: 80 },<br />
                  { text: ‘Freight’, columngroup: ‘OrderDetails’, datafield: ‘Freight’, cellsformat: ‘d’, cellsalign: ‘center’, align: ‘center’, width: 100 },<br />
                  { text: ‘Order Date’, columngroup: ‘OrderDetails’, cellsalign: ‘center’, align: ‘center’, cellsformat: ‘d’, datafield: ‘OrderDate’, width: 100 },<br />
                  { text: ‘Order Address’, columngroup: ‘OrderDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘OrderAddress’, width: 100 },<br />
                  { text: ‘Price’, columngroup: ‘ProductDetails’, datafield: ‘Price’, cellsformat: ‘c2′, align: ‘center’, cellsalign: ‘center’, width: 70 },<br />
                  { text: ‘Address’, columngroup: ‘Location’, cellsalign: ‘center’, align: ‘center’, datafield: ‘Address’, width: 120 },<br />
                  { text: ‘City’, columngroup: ‘Location’, cellsalign: ‘center’, align: ‘center’, datafield: ‘City’, width: 80 }<br />
                ],<br />
                columngroups:<br />
                [<br />
                  { text: ‘Product Details’, align: ‘center’, name: ‘ProductDetails’ },<br />
                  { text: ‘Order Details’, parentgroup: ‘ProductDetails’, align: ‘center’, name: ‘OrderDetails’ },<br />
                  { text: ‘Location’, align: ‘center’, name: ‘Location’ }<br />
                ]<br />
            });<br />
            $(“#excelExport”).jqxButton({ theme: theme });<br />
            $(“#xmlExport”).jqxButton({ theme: theme });<br />
            $(“#csvExport”).jqxButton({ theme: theme });<br />
            $(“#tsvExport”).jqxButton({ theme: theme });<br />
            $(“#htmlExport”).jqxButton({ theme: theme });<br />
            $(“#jsonExport”).jqxButton({ theme: theme });<br />
            $(“#excelExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xls’, ‘jqxGrid’);<br />
            });<br />
            $(“#xmlExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xml’, ‘jqxGrid’);<br />
            });<br />
            $(“#csvExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘csv’, ‘jqxGrid’);<br />
            });<br />
            $(“#tsvExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘tsv’, ‘jqxGrid’);<br />
            });<br />
            $(“#htmlExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘html’, ‘jqxGrid’);<br />
            });<br />
            $(“#jsonExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘json’, ‘jqxGrid’);<br />
            });<br />
            $(“#print”).jqxButton();<br />
            $(“#print”).click(function () {<br />
                var gridContent = $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘html’);<br />
                var newWindow = window.open(”, ”, ‘width=800, height=500′),<br />
                document = newWindow.document.open(),<br />
                pageContent =<br />
                    ‘&lt;!DOCTYPE html&gt;\n’ +<br />
                    ‘&lt;html&gt;\n’ +<br />
                    ‘&lt;head&gt;\n’ +<br />
                    ‘&lt;meta charset=”utf-8″ /&gt;\n’ +<br />
                    ‘&lt;title&gt;jQWidgets Grid&lt;/title&gt;\n’ +<br />
                    ‘&lt;/head&gt;\n’ +<br />
                    ‘&lt;body&gt;\n’ + gridContent + ‘\n&lt;/body&gt;\n&lt;/html&gt;’;<br />
                document.write(pageContent);<br />
                document.close();<br />
                newWindow.print();<br />
            });<br />
         });<br />
    &lt;/script&gt;<br />
[/js]</p>
<p>In the preceding script you can see a code part as follows:<br />
[js]<br />
columngroups:<br />
               [<br />
                  { text: ‘Product Details’, align: ‘center’, name: ‘ProductDetails’ },<br />
                  { text: ‘Order Details’, parentgroup: ‘ProductDetails’, align: ‘center’, name: ‘OrderDetails’ },<br />
                  { text: ‘Location’, align: ‘center’, name: ‘Location’ }<br />
               ]<br />
[/js]</p>
<p>This is where the column grouping is happening. And if you want to add a column under this column you can set that as follows:<br />
[js]<br />
{ text: ‘Name’, columngroup: ‘ProductDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘ProductName’, width: 120 }<br />
[/js]</p>
<p>You can specify this as needed and your data source.Now this is how our page looks like.<br />
[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html lang=“en”&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
    &lt;link rel=“stylesheet” href=“jqwidgets/styles/jqx.base.css” type=“text/css” /&gt;<br />
    &lt;script type=“text/javascript” src=“scripts/jquery-1.11.1.min.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxcore.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxdata.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxbuttons.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxscrollbar.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxlistbox.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxdropdownlist.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxmenu.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.filter.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.sort.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxgrid.selection.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxpanel.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“jqwidgets/jqxcheckbox.js”&gt;&lt;/script&gt;<br />
    &lt;script type=“text/javascript” src=“scripts/demos.js”&gt;&lt;/script&gt;<br />
    &lt;script src=“generatedata.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.pager.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.edit.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.columnsresize.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.columnsreorder.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxgrid.export.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
    &lt;script src=“jqwidgets/jqxdata.export.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
     &lt;script type=“text/javascript”&gt;<br />
         $(document).ready(function () {<br />
             // prepare the data<br />
             var source =<br />
            {<br />
                datatype: “xml”,<br />
                datafields: [<br />
                     { name: ‘SupplierName’, type: ‘string’ },<br />
                     { name: ‘Quantity’, type: ‘number’ },<br />
                     { name: ‘OrderDate’, type: ‘date’ },<br />
                     { name: ‘OrderAddress’, type: ‘string’ },<br />
                     { name: ‘Freight’, type: ‘number’ },<br />
                     { name: ‘Price’, type: ‘number’ },<br />
                     { name: ‘City’, type: ‘string’ },<br />
                     { name: ‘ProductName’, type: ‘string’ },<br />
                     { name: ‘Address’, type: ‘string’ }<br />
                ],<br />
                url: ‘orderdetailsextended.xml’,<br />
                root: ‘DATA’,<br />
                record: ‘ROW’<br />
            };<br />
             var dataAdapter = new $.jqx.dataAdapter(source, {<br />
                 loadComplete: function () {<br />
                 }<br />
             });<br />
             // create jqxgrid.<br />
             $(“#jqxgrid”).jqxGrid(<br />
            {<br />
                width: 900,<br />
                source: dataAdapter,<br />
                filterable: true,<br />
                sortable: true,<br />
                pageable: true,<br />
                autorowheight: true,<br />
                altrows: true,<br />
                columnsresize: true,<br />
                columns: [<br />
                  { text: ‘Supplier Name’, cellsalign: ‘center’, align: ‘center’, datafield: ‘SupplierName’, width: 110 },<br />
                  { text: ‘Name’, columngroup: ‘ProductDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘ProductName’, width: 120 },<br />
                  { text: ‘Quantity’, columngroup: ‘ProductDetails’, datafield: ‘Quantity’, cellsformat: ‘d’, cellsalign: ‘center’, align: ‘center’, width: 80 },<br />
                  { text: ‘Freight’, columngroup: ‘OrderDetails’, datafield: ‘Freight’, cellsformat: ‘d’, cellsalign: ‘center’, align: ‘center’, width: 100 },<br />
                  { text: ‘Order Date’, columngroup: ‘OrderDetails’, cellsalign: ‘center’, align: ‘center’, cellsformat: ‘d’, datafield: ‘OrderDate’, width: 100 },<br />
                  { text: ‘Order Address’, columngroup: ‘OrderDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘OrderAddress’, width: 100 },<br />
                  { text: ‘Price’, columngroup: ‘ProductDetails’, datafield: ‘Price’, cellsformat: ‘c2′, align: ‘center’, cellsalign: ‘center’, width: 70 },<br />
                  { text: ‘Address’, columngroup: ‘Location’, cellsalign: ‘center’, align: ‘center’, datafield: ‘Address’, width: 120 },<br />
                  { text: ‘City’, columngroup: ‘Location’, cellsalign: ‘center’, align: ‘center’, datafield: ‘City’, width: 80 }<br />
                ],<br />
                columngroups:<br />
                [<br />
                  { text: ‘Product Details’, align: ‘center’, name: ‘ProductDetails’ },<br />
                  { text: ‘Order Details’, parentgroup: ‘ProductDetails’, align: ‘center’, name: ‘OrderDetails’ },<br />
                  { text: ‘Location’, align: ‘center’, name: ‘Location’ }<br />
                ]<br />
            });<br />
            $(“#excelExport”).jqxButton({ theme: theme });<br />
            $(“#xmlExport”).jqxButton({ theme: theme });<br />
            $(“#csvExport”).jqxButton({ theme: theme });<br />
            $(“#tsvExport”).jqxButton({ theme: theme });<br />
            $(“#htmlExport”).jqxButton({ theme: theme });<br />
            $(“#jsonExport”).jqxButton({ theme: theme });<br />
            $(“#excelExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xls’, ‘jqxGrid’);<br />
            });<br />
            $(“#xmlExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘xml’, ‘jqxGrid’);<br />
            });<br />
            $(“#csvExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘csv’, ‘jqxGrid’);<br />
            });<br />
            $(“#tsvExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘tsv’, ‘jqxGrid’);<br />
            });<br />
            $(“#htmlExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘html’, ‘jqxGrid’);<br />
            });<br />
            $(“#jsonExport”).click(function () {<br />
                $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘json’, ‘jqxGrid’);<br />
            });<br />
            $(“#print”).jqxButton();<br />
            $(“#print”).click(function () {<br />
                var gridContent = $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘html’);<br />
                var newWindow = window.open(”, ”, ‘width=800, height=500′),<br />
                document = newWindow.document.open(),<br />
                pageContent =<br />
                    ‘&lt;!DOCTYPE html&gt;\n’ +<br />
                    ‘&lt;html&gt;\n’ +<br />
                    ‘&lt;head&gt;\n’ +<br />
                    ‘&lt;meta charset=”utf-8″ /&gt;\n’ +<br />
                    ‘&lt;title&gt;jQWidgets Grid&lt;/title&gt;\n’ +<br />
                    ‘&lt;/head&gt;\n’ +<br />
                    ‘&lt;body&gt;\n’ + gridContent + ‘\n&lt;/body&gt;\n&lt;/html&gt;’;<br />
                document.write(pageContent);<br />
                document.close();<br />
                newWindow.print();<br />
            });<br />
         });<br />
    &lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body class=‘default’&gt;<br />
    &lt;div id=‘jqxWidget’ style=“font-size: 13px; font-family: Verdana; float: left;”&gt;<br />
        &lt;div id=“jqxgrid”&gt;&lt;/div&gt;<br />
        &lt;div style=‘margin-top: 20px;’&gt;<br />
            &lt;div style=‘float: left;’&gt;<br />
                &lt;input type=“button” value=“Export to Excel” id=‘excelExport’ /&gt;<br />
                &lt;br /&gt;&lt;br /&gt;<br />
                &lt;input type=“button” value=“Export to XML” id=‘xmlExport’ /&gt;<br />
            &lt;/div&gt;<br />
            &lt;div style=‘margin-left: 10px; float: left;’&gt;<br />
                &lt;input type=“button” value=“Export to CSV” id=‘csvExport’ /&gt;<br />
                &lt;br /&gt;&lt;br /&gt;<br />
                &lt;input type=“button” value=“Export to TSV” id=‘tsvExport’ /&gt;<br />
            &lt;/div&gt;<br />
            &lt;div style=‘margin-left: 10px; float: left;’&gt;<br />
                &lt;input type=“button” value=“Export to HTML” id=‘htmlExport’ /&gt;<br />
                &lt;br /&gt;&lt;br /&gt;<br />
                &lt;input type=“button” value=“Export to JSON” id=‘jsonExport’ /&gt;<br />
            &lt;/div&gt;<br />
            &lt;div style=‘margin-left: 10px; float: left;’&gt;<br />
                &lt;input type=“button” value=“Print” id=‘print’ /&gt;<br />
            &lt;/div&gt;<br />
        &lt;/div&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>That is all. We have successfully created a wonderful JQX Grid as in the following:</p>
<div id="attachment_8991" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality1.jpg"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-8991" src="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality1.jpg" alt="Advanced JQX Grid With All Functionality" width="650" height="528" class="size-full wp-image-8991" srcset="/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality1.jpg 439w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality1-300x244.jpg 300w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality1-400x325.jpg 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-8991" class="wp-caption-text">Advanced JQX Grid With All Functionality</p></div>
<div id="attachment_9001" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality2.jpg"><img decoding="async" aria-describedby="caption-attachment-9001" src="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality2.jpg" alt="Advanced JQX Grid With All Functionality" width="650" height="536" class="size-full wp-image-9001" srcset="/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality2.jpg 433w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality2-300x247.jpg 300w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality2-400x330.jpg 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-9001" class="wp-caption-text">Advanced JQX Grid With All Functionality</p></div>
<div id="attachment_9011" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality3.jpg"><img decoding="async" aria-describedby="caption-attachment-9011" src="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality3.jpg" alt="Advanced JQX Grid With All Functionality" width="650" height="530" class="size-full wp-image-9011" srcset="/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality3.jpg 438w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality3-300x245.jpg 300w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality3-400x326.jpg 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-9011" class="wp-caption-text">Advanced JQX Grid With All Functionality</p></div>
<p>Now you may think, why are those export buttons outside? It looks different, right? Now we can work on it. In the JQX Grid there is an option called showtoolbar, by setting this to true we can have a toolbar along with the grid. There we can bind all of these buttons if you want. So shall we start?<br />
[js]<br />
showtoolbar: true,<br />
[/js]</p>
<p>Add that line to your JQX grid implementation. Next we need to append the UI elements to the tool bar, right?<br />
[js]<br />
rendertoolbar:function (toolbar) {<br />
                                     var me = this;<br />
                                     var container = $(“&lt;div &gt;&lt;/div&gt;”);<br />
                                     var input = $(‘&lt;div id=”excelExport” style=”background-color: #555555;float: left; font-<br />
                                                    weight: bold;line-height: 28px; min-<br />
                                                    width: 80px;padding: 3px 5px 3px 10px;color: #fff; “&gt;Excel&lt;/div&gt;<br />
                                                    div style=”background-color: #555555;float: left; font-weight: bold;line-<br />
                                                    height: 28px; min-width: 80px;padding: 3px 5px 3px 10px;color: #fff; margin-<br />
                                                    left: 3px;” id=”print” &gt;Print&lt;/div&gt;&lt;/div&gt;’);<br />
                                     toolbar.append(container);<br />
                                     container.append(input);<br />
                                 }<br />
[/js]</p>
<p>Add the preceding function also. 🙂 Now this is how your JQX Grid Implementation must be:<br />
[js]<br />
$(“#jqxgrid”).jqxGrid(<br />
                        {<br />
                            width: 900,<br />
                            source: dataAdapter,<br />
                            filterable: true,<br />
                            sortable: true,<br />
                            pageable: true,<br />
                            autorowheight: true,<br />
                            altrows: true,<br />
                            columnsresize: true,<br />
                            showtoolbar: true,<br />
                            rendertoolbar: function (toolbar) {<br />
                            var me = this;<br />
                            var container = $(“&lt;div &gt;&lt;/div&gt;”);<br />
                            var input = $(‘&lt;div id=”div1″ style=”background-color: #555555;float: left; font-weight: bold;line-<br />
                                          height: 28px; min-width: 80px;padding: 3px 5px 3px 10px;color: #fff; “&gt;Your First Div&lt;/div&gt;<br />
                                          &lt;div style=”background-color: #555555;float: left; font-weight: bold;line-height: 28px; min-<br />
                                          width: 80px;padding: 3px 5px 3px 10px;color: #fff; margin-<br />
                                          left: 3px;” id=”Div2″ &gt;Your Second Div&lt;/div&gt;&lt;/div&gt;’);<br />
                           toolbar.append(container);<br />
                           container.append(input);<br />
                      },<br />
                columns: [<br />
                           { text: ‘Supplier Name’, cellsalign: ‘center’, align: ‘center’, datafield: ‘SupplierName’, width: 110 },<br />
                           { text: ‘Name’, columngroup: ‘ProductDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘ProductName’<br />
                             , width: 120 },<br />
                           { text: ‘Quantity’, columngroup: ‘ProductDetails’, datafield: ‘Quantity’, cellsformat: ‘d’, cellsalign: ‘cente<br />
                             r’, align: ‘center’, width: 80 },<br />
                           { text: ‘Freight’, columngroup: ‘OrderDetails’, datafield: ‘Freight’, cellsformat: ‘d’, cellsalign: ‘center’,<br />
                             align: ‘center’, width: 100 },<br />
                           { text: ‘Order Date’, columngroup: ‘OrderDetails’, cellsalign: ‘center’, align: ‘center’, cellsformat: ‘d’, da<br />
                             tafield: ‘OrderDate’, width: 100 },<br />
                           { text: ‘Order Address’, columngroup: ‘OrderDetails’, cellsalign: ‘center’, align: ‘center’, datafield: ‘Order<br />
                             Address’, width: 100 },<br />
                           { text: ‘Price’, columngroup: ‘ProductDetails’, datafield: ‘Price’, cellsformat: ‘c2′, align: ‘center’, cellsa<br />
                             lign: ‘center’, width: 70 },<br />
                           { text: ‘Address’, columngroup: ‘Location’, cellsalign: ‘center’, align: ‘center’, datafield: ‘Address’, width<br />
                             : 120 },<br />
                           { text: ‘City’, columngroup: ‘Location’, cellsalign: ‘center’, align: ‘center’, datafield: ‘City’, width: 80 }<br />
                         ],<br />
           columngroups: [<br />
                           { text: ‘Product Details’, align: ‘center’, name: ‘ProductDetails’ },<br />
                           { text: ‘Order Details’, parentgroup: ‘ProductDetails’, align: ‘center’, name: ‘OrderDetails’ },<br />
                           { text: ‘Location’, align: ‘center’, name: ‘Location’ }<br />
                         ]<br />
         });<br />
[/js]</p>
<p>Now your output looks like the following:</p>
<div id="attachment_9021" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality4.jpg"><img decoding="async" aria-describedby="caption-attachment-9021" src="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality4.jpg" alt="Advanced JQX Grid With All Functionality" width="650" height="522" class="size-full wp-image-9021" srcset="/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality4.jpg 445w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality4-300x241.jpg 300w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality4-400x321.jpg 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-9021" class="wp-caption-text">Advanced JQX Grid With All Functionality</p></div>
<p>What if you want to share this Grid with your friends? For that we have a jQuery share pluggin, <a href="http://www.jqueryscript.net/social-media/Minimal-jQuery-Plugin-For-Social-Share-Buttons-Sharer.html" target="_blank">Minimal jQuery Plugin For Social Share Buttons – Sharer</a>.</p>
<p><strong>Include the following files from the downloded rar from the preceding link</strong></p>
<li>jquery.sharer.css</li>
<li>jquery.sharer.js</li>
<li>sharer.png</li>
<p>[js]<br />
&lt;link href=“styles/jquery.sharer.css” rel=“stylesheet” type=“text/css” /&gt;<br />
&lt;script src=“scripts/jquery.sharer.js” type=“text/javascript”&gt;&lt;/script&gt;<br />
[/js]</p>
<p><strong>Include the script to your page</strong><br />
[js]<br />
$(“.social-buttons”).sharer();<br />
[/js]</p>
<p><strong>Add a div where you can see the share buttons</strong><br />
[js]<br />
&lt;div class=“social-buttons” style=“position: relative;z-index: 1000;”&gt;&lt;/div&gt;<br />
[/js]</p>
<p>Well, that’s all; you have now done everything. We can now see the page as,</p>
<div id="attachment_9031" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality5.jpg"><img decoding="async" aria-describedby="caption-attachment-9031" src="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality5.jpg" alt="Advanced JQX Grid With All Functionality" width="650" height="478" class="size-full wp-image-9031" srcset="/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality5.jpg 485w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality5-300x221.jpg 300w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality5-400x294.jpg 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-9031" class="wp-caption-text">Advanced JQX Grid With All Functionality</p></div>
<p>To set the page size add the following line to your grid settings:<br />
[js]<br />
pagesize: 50,<br />
[/js]</p>
<p>To set the custom pagesize options add the following line to your grid settings:<br />
[js]<br />
pagesizeoptions: [‘5′,’10’,’15’,’20’,’30’,’40’,’50’],<br />
[/js]</p>
<p>To allow resizing of the columns add the following line to your grid settings:<br />
[js]<br />
columnsresize: true,<br />
[/js]</p>
<p>To allow column re-ordering options add the following line to your grid settings:</p>
<p>[js]<br />
columnsreorder: true,<br />
[/js]</p>
<p>Be sure that you added the <em>jqxgrid.columnsreorder.js</em> JavaScript file.</p>
<p>To allow an Excel-like filter add the following line to your grid settings:<br />
[js]<br />
filtermode: ‘excel’,<br />
[/js]</p>
<p>Then you will get a filtering option as follows:</p>
<div id="attachment_9041" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality6.jpg"><img decoding="async" aria-describedby="caption-attachment-9041" src="http://sibeeshpassion.com/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality6.jpg" alt="Advanced JQX Grid With All Functionality" width="650" height="407" class="size-full wp-image-9041" srcset="/wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality6.jpg 570w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality6-300x188.jpg 300w, /wp-content/uploads/2014/10/advanced-jqx-grid-with-all-functionality6-400x250.jpg 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-9041" class="wp-caption-text">Advanced JQX Grid With All Functionality</p></div>
<p>To enable the tooltip add the following line to your grid settings<br />
[js]<br />
enabletooltips: true,<br />
[/js]</p>
<p>To apply themes add the following line to your grid settings<br />
[js]<br />
theme: ‘metro’,<br />
[/js]</p>
<p>Please be noted that you must include the style sheet accordingly, In this case you have to include the following<br />
[html]<br />
&lt;link href=“~/jqwidgets/styles/jqx.metro.css” rel=“stylesheet” /&gt;<br />
[/html]</p>
<p>You can find so many CSS in <em>jqwidgets/styles</em> folder.</p>
<p>To enable auto height add the following line to your grid settings<br />
[js]<br />
autoheight: true,<br />
[/js]</p>
<p>To show the default filter icon always add the following line to your grid settings<br />
[js]<br />
autoshowfiltericon: false,<br />
[/js]</p>
<p>Happy Coding 🙂</p>
<p><strong>History</strong></p>
<p>First Version: 20-Oct-2014<br />
Second Version: 23-Oct-2014</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/advanced-jqx-grid-with-all-functionality/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
	</channel>
</rss>
