{"id":8107,"date":"2014-06-27T05:10:02","date_gmt":"2014-06-27T05:10:02","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=8107"},"modified":"2014-06-27T05:10:02","modified_gmt":"2014-06-27T05:10:02","slug":"client-side-api-to-hide-and-show-column-of-grid","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/","title":{"rendered":"Client Side API to hide and show Column of grid"},"content":{"rendered":"<p>Client Side API is much easier to work with Client side customizations rather than using JavaScript. In my previous blog I have explained how we can add column in grid using Client Side API. \u00a0Below is the link for the same.<br \/>\n<span style=\"color: #993300;\"><em><strong>Related Post: <\/strong><\/em><\/span><a title=\" Related Post:Sage CRM 7.2 Client Side API Adding columns to List at Runtime\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/29\/sage-crm-7-2-client-side-api-adding-columns-to-list-at-runtime\/\" target=\"_blank\">Sage CRM 7.2 Client Side API Adding columns to List at Runtime<\/a><br \/>\nIn this blog I will explain how we can hide and show columns of a grid using Client Side API.<br \/>\nSuppose, we don\u2019t want to Show Company associated with Opportunity to the users on the Opportunities tab in My CRM. We can achieve the same by using \u201c<b>hideColumn<\/b>\u201d method of Client Side API. To do the same follow below steps.<br \/>\n1. Log in to CRM.<br \/>\n2. Go to <b>Administration || Customization || Opportunity || Lists<\/b>.<br \/>\n3. Click on hyperlink of \u201c<b>Opportunity List<\/b>\u201d.<br \/>\n4. In the Custom Content write below code and save.<br \/>\n<i>\u00a0&lt;script&gt;<\/i><br \/>\n<i>window.attachEvent(&#8220;onload&#8221;,Page_OnLoad);<\/i><br \/>\n<i>function Page_OnLoad()<\/i><br \/>\n<i>{<\/i><br \/>\n<i>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 crm.grids(&#8220;0&#8221;).hideColumn(&#8220;comp_name&#8221;);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/i><br \/>\n<i>}<\/i><br \/>\n<i>&lt;\/script&gt;<\/i><br \/>\nBelow is the screenshot for the same.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg\" target=\"_blank\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter  wp-image-8108\" alt=\"Hidecolumn\" src=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg\" width=\"607\" height=\"378\" \/><\/a><\/p>\n<p>In the \u201c<b>hideColumn<\/b>\u201d method, we have to provide the column name which we want to hide.<br \/>\nWe can also show the column in grid using \u201c<b>showColumn<\/b>\u201d method. Below is the syntax for the same.<br \/>\n<i>crm.grids(&#8220;0&#8221;).showColumn(&#8220;comp_name&#8221;);<\/i><br \/>\n<span style=\"color: #993300;\"><em><strong>Also Read:<\/strong><\/em><\/span><br \/>\n1) <a title=\"Sage CRM 7.2 Client Side API Manipulate List Block Columns\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/05\/03\/sage-crm-7-2-client-side-api-manipulate-list-block-columns\/\" target=\"_blank\">Sage CRM 7.2 Client Side API Manipulate List Block Columns<\/a><br \/>\n2) <a title=\"SageCRM 7.2 URL parameters through Client Side API\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/04\/11\/sagecrm-7-2-url-parameters-through-client-side-api\/\" target=\"_blank\">SageCRM 7.2 URL parameters through Client Side API<\/a><br \/>\n3) <a title=\"New way of Client side field customizations\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/11\/05\/new-way-client-side-field-customizations\/\" target=\"_blank\">New way of Client side field customizations<\/a><br \/>\n4) <a title=\"Control Column Visibility in Sage CRM Grids and Lists\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/05\/03\/control-column-visibility-in-sage-crm-grids-and-lists\/\" target=\"_blank\">Control Column Visibility in Sage CRM Grids and Lists<\/a><br \/>\n5) <a title=\"Flexible Grid Size in Sage CRM\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2013\/06\/24\/flexible-grid-size-in-sage-crm\/\" target=\"_blank\">Flexible Grid Size in Sage CRM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Client Side API is much easier to work with Client side customizations rather than using JavaScript. In my previous blog I have explained how we can add column in grid using Client Side API. \u00a0Below is the link for the same. Related Post: Sage CRM 7.2 Client Side API Adding columns to List at Runtime\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68,155,172,219,220,332,1,423],"tags":[702,1138,1317,1532,2010,2287],"class_list":["post-8107","post","type-post","status-publish","format-standard","hentry","category-column","category-fields","category-hide","category-list","category-lists","category-sage-crm","category-uncategorized","category-view","tag-column","tag-field","tag-hide","tag-list","tag-sage-crm","tag-show"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Client Side API to hide and show Column of grid - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Client Side API to hide and show Column of grid - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"Client Side API is much easier to work with Client side customizations rather than using JavaScript. In my previous blog I have explained how we can add column in grid using Client Side API. \u00a0Below is the link for the same. Related Post: Sage CRM 7.2 Client Side API Adding columns to List at Runtime\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-27T05:10:02+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/\",\"name\":\"Client Side API to hide and show Column of grid - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg\",\"datePublished\":\"2014-06-27T05:10:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#primaryimage\",\"url\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg\",\"contentUrl\":\"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Client Side API to hide and show Column of grid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Client Side API to hide and show Column of grid - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/","og_locale":"en_US","og_type":"article","og_title":"Client Side API to hide and show Column of grid - Sage CRM \u2013 Tips, Tricks and Components","og_description":"Client Side API is much easier to work with Client side customizations rather than using JavaScript. In my previous blog I have explained how we can add column in grid using Client Side API. \u00a0Below is the link for the same. Related Post: Sage CRM 7.2 Client Side API Adding columns to List at Runtime\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2014-06-27T05:10:02+00:00","og_image":[{"url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg","type":"","width":"","height":""}],"author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/","name":"Client Side API to hide and show Column of grid - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#primaryimage"},"thumbnailUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg","datePublished":"2014-06-27T05:10:02+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#primaryimage","url":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg","contentUrl":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-content\/uploads\/2014\/06\/Hidecolumn.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2014\/06\/27\/client-side-api-to-hide-and-show-column-of-grid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Client Side API to hide and show Column of grid"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/8107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=8107"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/8107\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=8107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=8107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=8107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}