I am binding a dataset to a XtraGrid gridview. I need to set one of the columns in the gridview to multiline. Could someone tell me how to set the property of a particular column in the grid to multiline.
Note: The DevExpress XtraGrid is from a third party dll.
If you want to show multi-line text in the XtraGrid utilize the RepositoryItemMemoEdit as an in-place editor in the grid. To adjust the row height automatically and display the content of cells, enable the OptionsView.RowAutoHeight option.
Related
Tabulator offers a wide range of options to programmatically filter data, however I could not find a way to render on the page the dropdown and textbox used to actually filter data on the table.
It seems the only option that render a filter element on the Table is: headerFilter.
It looks weird that I have to create dropdown and searchbox myself?
Here is the link to their page dealing with Filters: http://tabulator.info/docs/4.1/filter
Please advise, thank you
You can use any of tabulators Editors as header filters
The Examples Page contains a fully working example of a table with a selection of header filters including text boxes and select elements
in the column definition you just have to use the headerFilter property, in this case we also use the headerFilterParams option to make the select element populate from the names in the column:
{title:"Name", field:"name" headerFilter:"select", headerFilterParams:{values:true}}
or for a simple input element
{title:"Name", field:"name" headerFilter:"input"}
How do I colorize or change style for a column in datagrid Livecode from a button?
I tried something like this but no succeed.
set the dgColumnColor [col4] of grp "DataGrid" to "red"
Thanks!
There is no "dgColumnColor" property for a Data Grid.
A data grid is actually a collection of objects/groups assembled on the fly.
Each cell in a table has a field and each column in the table is a group of these fields. The group name of the column is the name you have given the column.
You can verify this in the message box with...
put the dgprops["columns"] of grp "datagrid 1"
Assuming the name of your column is "ColorMe" and the data grid is "datagrid 1" then you need a repeat loop to step, line by line, through the table and set the backcolor of the column group "ColorMe" to the color you want.
Place this loop in the script of the data grid and call it whenever the data grid is opened or refreshed.
There are many customisations that you can do on a data grid both using its published properties as well as understanding how they are constructed.
To make it easier there is a plugin "Data Grid Helper" which can do what you ask and much more. I can heartily recommend it.
see http://www.aslugontheroad.com/ourproducts/2-what-is-dgh
pic
pic
ex. i have 2 column in this table if i write "if i = 1 then hide column 2" and when i = 1 , they hide only text, not hide table-column how can i hide all? thank you!
i weak in English.
The hide when has to include the whole column not only one cell.
In order to have full control of rows/cells hiding, you might want to write your own table in plain HTML.
There's no way to hide a table column when using the Notes client.
If you're going to display the table in a web browser then you could easily hide with css.
I currently am able to "hide" a column but it's for a very specific use case which is probably not helpful to you but may be to others. I would only use this if it's the last column in the table, the contents are there for programmatic control (buttons, etc) or non-essential information, and you're hiding for preview/read/print purposes.
Do the following on all cells of the column:
Define the hide-when
Set the border width to 0
Set the cell color to white (or whatever your form's background color is)
Of course, by doing this the border width and color will always be the same. There's no way to programmatically change those.
I want to create a dropdown in text area to filter data in table dynamically.
I have many entries under Filter "Task Description".
But I want to create a dropdown in text area with only below three entries out of all entries.
All - it will show the entire data
Prasanta - this selection will only show Prasanta related rows
Chandan - this selection should only show Chandan related rows.
Is it possible?
the best and simplest way to do this is with a Text Area visualization containing a Property Control. I'll give you a loose outline and you can use the Spotfire help on Property Controls to get more detail.
add a new Property Control of type Drop-down list to a Text Area
create a new Document Property of type string
set the property value through Expressions
the expressions you list here should evaluate to boolean true or false. for example, for Prasanta rows you might use [Task Description] = "Prasanta". the expression for All rows should be blank.
on the Data page of the filtered visualization's Properties, scroll down to Limit data using expression and click Edit...
from the middle pane, double click the name of the Document Property you created in step 2 above
test by selecting different items from the dropdown you created
I am using BIRT 4.4.1 in eclipse for report generation.
I would like to wrap my text of Table Header, it works fine in webviewer but when i exported to excel the table cell text is in a single line, and also the text is overflowed. I dont want to make the cell width equal to the content, I would like to wrap the text based on its container width.
I have set the cell width and label whitespace property as auto. is it correct, or what do i do to make it work in exported excel report?
In Webview
After exported, Excel view
In 4.4.2 export as XLS (not xlsx). As a workaround you can also add a line return within the text and that will appear correctly when you export to xlsx.
A third option that works with xlsx output is to select the text box in the cell, and in General Properties set the Whitespace to Preformatted. Then, either set the header cell size to a height that covers the required text OR in general properties of the entire report, set the layout to Auto Layout.