Browse files

add option to ColumnHider extension to allow columns to opt out (fixe…

…s conflict with Selector plugin)
  • Loading branch information...
1 parent f134d2e commit a576c2eb9ac1be1aa0d599468d8d54e5e8a9ca41 Dean Landolt committed Dec 16, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 extensions/ColumnHider.js
@@ -96,6 +96,8 @@ define(["dojo/_base/declare", "dojo/has", "dojo/on", "dojo/query", "dojo/dom", "
// populate menu with checkboxes/labels based on current columns
for(id in this.columns){
col = this.columns[id];
+ // allow cols to opt out of the hider (specifically for selector col)
+ if (col.unhidable) continue;
// create the HTML for each column selector.
div = put(hiderMenuNode, "div.dgrid-hider-menu-row");

0 comments on commit a576c2e

Please sign in to comment.