Flexicious HTML DataGrid hide row based on column value - html

I have recently started working with HTML tree grid and was able to figure out how to hide different column based on visibility. My question to the developer is there a way by which I can hide a row in grid based on specific column value?
For example if there is a column called quantity if the value in this column is 0 then i need to hide all the rows in which quantity is 0

There are a number of different ways - you can use an external filter function: Here is an example : http://www.htmltreegrid.com/demo/prod_jq_treegrid.html?example=External%20Filter

Related

SSRS - hide a column and change width of other column

I'm creating a report that has 5 columns. However, one column can have no data and in that case I need to hide it. This works using the 'Hidden' property of column but when the column is hidden, I want to make the first column wider. Is there any way to do this in expression?
The only solution I found is to have multiple same tablixes with different column count and then show or hide each tablix appropriately if the specific column has no data. (by checking 'Max' value in column).
Unfortunately, it's not possible to enter an expression to the column width property but if you simply need to change the width of one other column when the first is hidden, I've come up with a workaround that works fairly well.
The idea is a little easier and requires less data to load than your current solution. Basically, you'll create an identical width column that is simply empty -- but set the borders to appear as if it is simply part of another column. So you'll simple reverse the expression used to hide the column with no data in the hidden property. To achieve this, depending on where you choose to add the extra space column, you'll have to adjust the borders of the adjoining cells where there is no right border on the cell to the left and a left border on the cell to the right. Depending on your layout, you would only need a top and bottom border on the extra space column cells.
I did something similar with a report that has 3 pages and 11 columns -- but 8 of the columns changed from page to page. I had to hide one column, show another, and used expressions in column headers and detail rows to simply change the data in each column based on a field that returns the type of the data.

how do I hide parent row when child rows expanded?

I have a data set that consists of the gross dollar amount on row 1, 1-n number of rows of various details then a last row that shows the gross dollars minus the various row amounts. I am trying to replicate some expand/collapse functionality used in an internal ASP report page where the initial row is the NET value (collapsed). When expanded, the gross, detail, and net rows show up in a "expand up" action.
I have been able to so far get the parent row to show the NET values when collapsed, but I am trying to find a way to hide the contents of the parent row once expanded so that the NET values are not displayed twice.
Is there some kind of "is hidden" property I can use in an expression to hide the data in the cells? not sure how else I can accomplish this. Any help would be appreciated.
thanks!
The only thing I can think of that might help is inscope(). You can use something along the lines of:
iif(inscope("ChildGroup") = TRUE ...
This will test to see if the current item is within the scope of the grouping, which means that you can test if the current group is expanded or collapsed.
See https://technet.microsoft.com/en-us/library/ms156490(v=sql.100).aspx for more information on inscope().
so after much research it appears this cannot be done thanks to SSRS producing a static report once rendered. The inscope function allowed me to set the initial state of the row, but does not give functionality to update report properties after rendering occurs. my only options would be then to create a second parent group (grand parent?) or insert an action that calls the report over again passing in a hidden parameter.
thank you for your help!
I believe you can do this, but you'll need to make some adjustments.
A. You can't put your gross dollar amount in the row you'll be using to expand/collapse.
B. Don't use group visibility to expand/collapse. You'll need to use row visibility. (This can get tricky and I don't recommend it if you have nested groups. It becomes unmanageable.)
Row 1: Toggle
Row 2: Gross Dollar Amount, default visible
Row 3-n: Various row Dollar Amounts, default hidden;
Set rows 2-n to toggle based on Row 1.
When you the report initially renders, Row 2 will be visible, Row 3n are not. When you toggle, Row 2 will hide, row 3n will be visible.

Filter in TextBox Expression SSRS

I have 5 visualizations in my rdl file. After each visualization I have a ABOUT Textbox which should be filled from a database table and it has html content to render.
Consider a table with 5 rows having visualization name and ABOUT Text.
<table><tr><th>visualization Name</th><th>About Text</th><th></th><th></th><th></th></tr><tr><td>Visualization1</td><td><B>Table1</B></td><td></td><td></td><td></td></tr><tr><td>Visualization2</td><td><I>Table2</I></td><td></td><td></td><td></td></tr><tr><td>Visualization3</td><td><B>Chart1</B></td><td></td><td></td><td></td></tr><tr><td>Visualization4</td><td><I>Chart2</I></td><td></td><td></td><td></td></tr><tr><td>Visualization5</td><td><B>PieChart1</B></td><td></td><td></td><td></td></tr></table>
I have created a DataSet which would pull all 5 rows along with 2 columns. And I want to link each row's AboutText field to each TextBox of individual visualization. Of course I'll have to use filters. But there is no option for adding filters in TextBox expression. And I don't want to create 5 separate DataSets for just rendering purpose.
How would I achieve this in SSRS 2016?
Create a tablix and put your visualisation in one row and your About Text in the next row as a child group. Set the child groups visibility to be toggled on the parent group and your will be able to expand and collapse the About Text row by clicking on a little + icon that will appear next to your Visualisation.
There are a few ways you could do this. One option is to add an ID column to your dataset. Then in each textbox you can use the Lookup function to get the appropriate label. Another option is to insert a table with one cell next to each visualization. You can use the Filter property on the table to control which label is shown.

Display Column of a table depending on fDropdown Select

I have a dropdown containing the table headers of the table of I want to display. I want to display a specific column based on the selected value in dropdown. Is This possible? If it is can you give me an insight on how will I do this? I am using html and angularjs

sorting Datagrid to highlight rows

I currently have an advanced Datagrid which I have customised to highlight rows based on a conditional statement. I need to now sort the datagrid based of a specified column and then highlight the top 20%. so far I can get the row index and change the row color but need to find a way to highlight the top 20% of the ints in the column named "COLUMN_1"
if(data.getItemAt(dataIndex)){
var row:Object = data.getItemAt(dataIndex);
if(//conditional statement needed)
{
color=(dataIndex%2==0)?0xff0033:0x880000;
}