Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • jQuery Mobile
  • jQuery jQwidget
  • jQuery EasyUI
  • jQuery UI
  • jQuery
  • JavaScript
  • Web Technology
Open In App
Next Article:
jQWidgets jqxGrid iscolumnvisible() Method
Next article icon

jQWidgets jqxGrid iscolumnvisible() Method

Last Updated : 30 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

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 iscolumnvisible() method is used to check if a specified column is visible or not. It has a parameter named dataField, which is of type string. It returns a Boolean value.

Syntax:

var visible = $('#Selector').jqxGrid('iscolumnvisible', 'dataField');

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/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>

The below example illustrates the jqxGrid iscolumnvisible() method in jQWidgets.

Example:

HTML
<!DOCTYPE html> <html lang="en">  <head>     <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/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> </head>  <body>     <center>         <h1 style="color: green">             GeeksforGeeks         </h1>          <h3>jQWidgets jqxGrid iscolumnvisible()             method         </h3>         <br />          <div id="jqxg"></div>          <div>             <input type="button" id="jqxBtn"                  style="margin-top: 25px"                  value="Click here" />         </div>          <div id="log"></div>     </center>      <script type="text/javascript">         $(document).ready(function () {             var d = new Array();             var subjectNames =                 ["C++", "Scala", "Java", "C", "R", "JavaScript"];              var pageNumber =                 ["7", "8", "12", "11", "10", "19"];              for (var j = 0; j < 7; j++) {                 var r = {};                 r["subjectnames"] =                     subjectNames[(Math.floor(                         Math.random() * subjectNames.length))                     ];                  r["pagenumber"] =                     pageNumber[(Math.floor(                         Math.random() * pageNumber.length))                     ];                 d[j] = r;              }             var src = {                 localdata: d,                 datatype: "array",             };             var data_Adapter = new $.jqx.dataAdapter(src);             $("#jqxg").jqxGrid({                 source: data_Adapter,                 height: "220px",                 width: "230px",                 columns: [                     {                         text: "Subject Name",                         datafield: "subjectnames",                         width: "120px",                     },                     {                         text: "Page No.",                         datafield: "pagenumber",                         width: "140px",                     },                 ],             });              $("#jqxBtn").jqxButton({                 width: "180px",                 height: "30px",             });             $("#jqxBtn").on("click", function () {                 var icv = $('#jqxg').jqxGrid(                       'iscolumnvisible', "pagenumber");                 $("#log").html("Column_visible: " + icv);             });         });     </script> </body>  </html> 

Output:

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


Next Article
jQWidgets jqxGrid iscolumnvisible() Method

N

nidhi1352singh
Improve
Article Tags :
  • Web Technologies
  • JQuery
  • jQuery-jQWidgets
  • jQWidgets-jqxGrid

Similar Reads

    jQWidgets jqxGrid iscolumnpinned() Method
    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 suppor
    2 min read
    jQWidgets jqxGrid iscolumngroupable() Method
    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 suppor
    2 min read
    jQWidgets jqxGrid hidecolumn() Method
    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 suppor
    2 min read
    jQWidgets jqxGrid ensurerowvisible() Method
    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 suppor
    2 min read
    jQWidgets jqxGrid getcolumn() Method
    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 suppor
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences