Is there a way to add row labels to slick grid?
I guess worst case, I could make a static first column but I was thinking there might be something built-in?
Basically what you need is just a column which you can style and format as you wish with your label content, but the functionality that is currently missing from SlickGrid is support for fixed/frozen columns. There are some forks that have attempted to implement it, but the implementation is incomplete.
Related
I have a classic report in my APEX app. I need to do something like conditional formatting in Excel - to change background color of cells in one column, based on the value of the cells. I found some tutorials, but all for interactive reports, which didn't work with the classic report. Can anybody help me with that issue?
If you're trying to conditionally color entire rows, you'll probably want the built-in alternative row templates with conditions. It's part of the report template.
But if you want to format individual cells, the usual way of doing it is to calculate the background color you want in a new SQL column, hide the column, then get the color value using a #COLUMN_NAME# substitution variable. See this article for a simple example, but there are a lot of other examples if you just search for apex conditional cell formatting.
I have a drop down box and old data in the sheet that doesn't match up to the drop down box list needs to be added to my conditional formatting so the cell stands out a bit better.
Is it possible to set the conditional formatting of a cell based on whether or not the cell has a validation error?
It is impossible to do that the way you want, but there is a workaround.
You can use conditional formatting with a custom formula.
If you data validation is from a range, use that range. If it is from a list, create a range with that list.
For example a range on Sheet2 A1:A10 has the values that are used in data validation. You want to format the range Sheet1 B:B based on values found in that range.
First, select the column in your table(or the whole table) and colour it Red. Then use Conditional Formatting with the following custom formula to colour everything that matches White
=COUNTIF(INDIRECT("Sheet2!$A$1:$A$10"),"="&B1)
You can also add another conditional formatting to colour all the empty cells as white if you have empty space after your table
Good stuff! It took me a while but I found that this formula works and will color the cells that are not in the range AND do not have a blank cell at the first column. This is good to spot data validation errors and works better than looking for a little tiny triangle at the top right of each cell.
=AND(NOT(COUNTIF($M$3:$M$40, H3)),A3<>"")
This worked for me.
Under conditional formatting, new rule, use formula.
=IF(OR(A2="valid data 1",A2="valid data 2"),"FALSE","TRUE")
Then set error condition.
I'm using singularitygs as my grid system and am really like the flexibility but I have come across a fairly unique situation and I'm not sure if singularity (or any other grid system) addresses
I have a row that span the entire column width, that breaks up the header portion and the content portion of the document. There is an element, div.b, that sits within above the full column bars next to div.a in larger layout. But on a medium sized layout and below, that element falls below the full span row. Here is the source order and the desired output, showed using a 10 column layout for simplicity.
Source Order
div.a
div.b
div.c
div.d
div.e
div.f
div.g
div.h
Large Layout
Medium Layout
Thanks in advance for any help and ++ to the creators of the grid system
Interesting use case. Honestly it’s going to be pretty hard until CSS grid layout comes out. While Singularity can handle any order horizontally, the vertical reordering like "D" and "G" stacked is going to be tricky. There might be a clever use of floats to get this working but it will probably be more hand manipulation of elements than pure Singularity magic.
How can I achieve this kind of grid? What controls/tools I should use? Any idea?
This screen cast is from the Baplie Viewer application. I guess it was done by the captain using visual foxpro while he was sailing.
[Edit]
It is ready-only and column widths will be fixed. It is a kind of reporting generated in a tabular format similar to Grid, but I think we cannot use the native Grid control.
And it may be needed to generate dynamically. I mean we would not be able to use shape tools, line tool, etc. in design time.
Is the grid editable? Or readonly?
A VFP grid control can take any of the VFP controls as the column control source. For example, the "Total" row may be two columns. The second column could contain another VFP grid as it's control source. While the first column is just a textbox or label.
Or, this grid could be readonly and created by using the Line or Shape controls, coloring their areas and using labels to represent the data.
If you are interested in using third party controls like this, I would recommend DBI-Technologies. They have a large selection of custom controls that work with VFP.
That's not a grid control, or a FoxPro control of any type. (Or, at least, that's not the best way to get that effect.) It's a webview control bound to an HTML web page, generated in the background and then displayed most likely via a temporary file.
The easiest way to achieve the effect in a FoxPro application is to use the CUROSRTOXML function and a XSLT transformation.
Does anybody have an information on how to set the maximum number of columns in a slickgrid table? I see that if I have more than 120 columns the new columns appear on a new row in the header section, and what is even worse some columns are hidden.
I am trying to use slickgrid to show excel headers, and I am seeing that when having too many columns slickgrid only optimizes the scrolling of rows and not of columns.
Can anybody guide me in the right direction regarding this?
UPDATE: Support for virtual rendering on columns has been implemented in SlickGrid v2.1.
This is a bug - you should file it on GitHub.
On the latter, SlickGrid doesn't handle large numbers of columns very well right now, and you have correctly noted that columns are not virtualized like rows. This is something I'm going to investigate for the next major revision.