![]() |
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 sort Event is activated whenever the displayed jqxGrid is sorted. Syntax: $("#Selector").on("sort", function (event) { // Arguments of the event var args = event.args; // Information of the sorting var sortInfo = event.args.sortinformation; // Direction of the sorting var sortdirection = sortInfo.sortdirection.ascending ? "ascending" : "descending"; // Data field of the column var sortColumnDataField = sortInfo.sortcolumn; }); Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.
The below example illustrates the jqxGrid sort Event in jQWidgets. Example: HTML
Output: |
Reffered: https://www.geeksforgeeks.org
JQuery |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |