UI-Grid Remove $TreeLevel and Instrument ColumnDef's from Column Menu List - angularjs

I have set the $$TreeLevel and Instrument ColumnDef's visbile property to false and I'd like for that to be permanent by removing those columDef names from the Column Menu so the user can't toggle it visible.
I see an enableHiding option I can set to false if the column is visible, which removes that column from the Column Menu, therefore disabling the ability to hide the column
I need that opposite functionality. So when a columnDef's visibility is false, those columns should be removed from the Column Menu list so they can't be seen.
I have set this property for the $$TreeLevel and Instrument ColumnDef's :
`columnDef.visible = false;`
I haven't been able to find anything in the docs that would allow this. How can I remove those column names from the Column Menu so the user can't see them and make them visible?
Thanks

Related

How to hide specific columns in the grid column menu (ExtJS 6.5.3)?

I have a grid, which has some columns that are set hidden. However, if I click on the column head and open up the menubox it shows all columns in the column section. It also includes those columns that are set hidden in the grid itself. My question is how I can remove those columns from this list as well?
You can set hidden to true and hideable to false. That will hide the column and omit it from column menu.

How to hide/show ui grid rows based on search condition

So I have been struggling with a problem involving a ui-grid that I have implemented. We have a complicated search for a table where a user can search for IDs for employees and they can also search IDs for companies. There are textboxes corresponding to employee/company ID so the user knows where to start typing. Right now, I am conditionally swapping the column visibility based on where the user begins typing (employee ID hides company columns as an example). However, I need a way to also hide the company/employee rows because the columns are showing empty values and are displaying when the user has nothing in the search box.
Research: I am toggling the columns based on an answer I found where I am just changing column visibility, but it seems there is no row visibility option. However, the only row hiding functionality seems to be checking against a static value and in this case it needs to be dynamic.
I am considering just using two different grids and toggling visibility based on the search boxes typed in, but I was trying to see if I could use just one grid.
Any help would definitely be appreciated.

SSRS : How to repeat header row of a table on each page that is embedded in a LIST?

I have a SSRS report that has a list which includes two embedded tables.
For these tables if I set the header rows to repeat on each page, I get an error "All tablix member elements in a TablixColumnHierarchy must have the RepeatOnNewPage Property set to false".
How do I fix this and make the headers repeat on each page?
Thank you.
In design mode while editing the rdl file, at bottom of the editor you will find Row Groups and Column Groups (left and right, respectively). Beside Column Groups you will find one arrow button ▼ (this arrow button is at the right side of the column groups portion). Click on this arrow button.
Check Advanced Mode
In the RowGroups section you will find '(Static)' and '(Details)'. click on/highlight (Static) and press F4 (to check its properties on the Properties window.)
Set Keep With Group to After
Set Repeat On New Page to True
Go back to table, right-click on the row header (the grey bar), and select to Tablix Properties.
Check on Repeat header columns on each page and repeat header column on each Row. (Edit as of VS2012 at least he might mean Repeat header rows on each page)
Its nothing but a property for the report named RepeatOnNewPage is false. If you click on the page header and go for page header properties
General --> Display header for this page -> Print on first page and print on last page(check all the boxes over here )and click ok
Run the report. This is done on report builder 3.0 .I am not sure which tool you are using.
Or you can follow this
Select the Tablix.
In the grouping pane, click on the small triangle and select "Advanced Mode" to show static members.
In the row group hierarchy, select the corresponding (static) item of the header row.
In the Properties grid:
set RepeatOnNewPage to True

extjs showing hidden columns under 'Columns'

In extjs I have a GridPanel. The GridPanel has some hidden columns. Now when I click on the Grid menu, there is an option called 'Columns'. When you mouseover 'Columns' you can check/uncheck the columns you want to show/hide.
Be default the hidden columns are also showing up on mouseover. Is there a way to avoid this?
You can use such a property for your columns:
hideable:false
In this case these columns can not participate in showing/hiding.
from column def reference:
hidden : Boolean
Optional. true to initially hide this column. Defaults to false. A hidden column may be shown via the header row menu.
If a column is never to be shown, simply do not include this column in the Column Model at all.

extjs grid panel

How can we determine if a column is checked or unchecked in column menu header?
Are you wanting to check if a particular column is hidden, as opposed to whether the menu is checked? If so:
grid.getColumnModel().isHidden(index);

Resources