How to customize the table header and table row with a background color in LWUIT - themes

I have created a table with the default table model that contains three columns and some rows, what I want to do is to customize the style of the header with a background color and also customize the background color of each rows with a different color than header colors.
Also I want to be able to set the size of each column to be different I want one columns to be larger than other two columns.
Please anyone can help?

Set the styles for TableHeader and TableCell respectively.
If you want more control than that derive table and override:
protected Component createCell(Object value, int row, int column, boolean editable)

Related

How to set cell color if value is present in Angular slickgrid

I'm using Angular slickgrid and I want to change the cell color if the value is present in that cell.
Note: I want the color only for the cell not the whole row.
Is there any best way to iterate over all the cells and set the color or any equivalent solution?
I have a requirement to show the different cell colors depending on the data. Red color if the data is coming from the server and not changed (not dirty). If the data is edited or added new row (dirty), the cell color would be blue. I have updated the question.
function renderCellWithColor(cellNode, row, dataContext, colDef) {
if (dataContext[colDef.field] != ""){
$(cellNode).addClass("requiredClass"))
}
}
I'm using this function using enableAsyncPostRender. This does not work if I edit or add new row.
Use the option cssClass on the column definition or use a Custom Formatter returning an object following the FormatterResultObject, see Wikis Custom Formatter - FormatterResultObject - Wiki and sample - Wiki, the FormatterResultObject has the advantage of applying the CSS class to the cell container via the property addClasses and using the formatter object is the only way to get access to the cell container.

Adding tooltip to rows in treeview in gtkmm

I am using a Gtk::TreeView to create a tree view in gtkmm. It has two columns. The first column has two types of icons in different rows. One icon is used to add an element to the tree and the second is used to delete the element from the tree.
I have accessed the column number of the first column and added tooltip to the icons. However, I need different tooltips for both the icons.
A variable COL_ADD is used to compare the column using:
if (col == _tree.get_column(COL_ADD-1)) {
set_tooltip_text(_("Add selection to set"));
}
where col is Gtk::TreeViewColumn.
Since both the icons belong to same column, so they are getting the same tooltip. How do I differentiate to get the corresponding rows of icons to add different tooltips to them?
I guess that Gtk::TreeView::set_tooltip_cell() is what you need:
https://developer.gnome.org/gtkmm/stable/classGtk_1_1TreeView.html#ae7cc8fde03c481de81fc9d13e34bff98

How can the row and column labels of a Microsoft Reporting matrix be set?

I have a simple matrix control on my report, and the data shows up like I expect, except without labels.
How can I get the labels to appear with the values I want (not necessarily the name of the data element)?
I found that by highlighting the cell where the data is accumulated, it is possible to right click and select 'Insert Static Row' or 'Insert Static Column'.
Once the static row or column is created, it can be used as a label.

Telerik Report : Starch line in Detail band or Add Empty rows

I am trying generate one sale bill format format in telerik report design.
I Need Output like detail band is grow to fit page size. like adding blank row.
i have used table inside details band.
Is there any property in detail band or in table to fit page size?
or i have to manually add blank rows?
You can set the Docking property by selecting the table and then using the property window to set the value.
Set it to Fill by clicking in the value box and selecting Fill.
Alternatively you can just type Fill.

Make only certain columns editable in SlickGrid

I have a grid with multiple columns and I use the first column for a row label. I looked at the example for making the grid editable, but that appears to make the whole grid editable. Is there away to specify a certain column(s) only?
Got it! By not setting the editor property on the column object the column is non-editable.

Resources