VOOZH about

URL: https://www.geeksforgeeks.org/jquery/jqwidgets-jqxgrid-columngroups-property/

⇱ jQWidgets jqxGrid columngroups Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQWidgets jqxGrid columngroups Property

Last Updated : 23 Jul, 2025

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxGrid is used to illustrate a jQuery widget that shows data in tabular form. Moreover, it renders full support for connecting with data, as well as paging, grouping, sorting, filtering, and editing.

The columngroups property is used to enable the multiple column headers in the displayed jqxGrid. It is of Array type and its default value is [].

The available values to be used in the array are as follows:

  • parentgroup: It is utilized to set the parent group name of the column header.
  • name: It is used to set the name of the column header.
  • align: It is used to set the alignment for the column header. And the possible values can be 'left', 'center', or 'right'.

Syntax:

  • Set the columngroups property:
$('Selector').jqxGrid({ columngroup: [] });
  • Return the columngroups property:
var columngroups = $('Selector').jqxGrid('columngroups');

Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>
<script type="text/javascript" src="jqwidgets/jqxdata.js"></script>
<script type="text/javascript" src="jqwidgets/jqxbuttons.js"></script>
<script type="text/javascript" src="jqwidgets/jqxscrollbar.js"></script>
<script type="text/javascript" src="jqwidgets/jqxmenu.js"></script>
<script type="text/javascript" src="jqwidgets/jqxgrid.js"></script>
<script type="text/javascript" src="jqwidgets/jqxgrid.selection.js"></script>

Example 1: The below example illustrates the setting of jqxGrid's columngroups property in jQWidgets.

Output:

👁 Image
 

Example 2: The below example illustrates the jqxGrid columngroups property in jQWidgets by setting its value as null.

Output:

👁 Image
 

Reference: https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm?search=

Comment

Explore