jqgrid dynamic row that spans all columns? - jqgrid

Wanting to add a new row under the current row based on a data condition and make that row span all columns. So I'm thinking add it in a formatter but I'm not sure how to get the spanning.

Related

BIRT 4.4.2 Table in a Grid xls

I have a BIRT report containing a grid. In the first column first row, there is a chart. In the first column second row, there is a table which has multiple columns. When exporting to Excel using the spudsoft emitter, the columns of the table are merged together so that the entire table only occupies one column in excel.
How do I have my table properly occupy a corresponding number of excel columns? For example can I have my chart span multiple merged columns in a row?
To overcome this problem I usually use the same amount of columns in a Grid I have in my table.
You can merge multiple cells in the second row of the grid and place the table there.

jqGrid Drag-and-Drop Receiving row highlight

Using jqGrid - would like to drag from Table A into an arbitrary row in Table B. Would like the rows of Table B to highlight as I hover over them during a drag. Is this possible?
Even better, can I insert into arbitrary fields in the destination row upon drop?
What I am doing is populating a row field-by-field.
Thanks.

Insert cell in table row eclipse birt

I can't seem to find a way to insert another cell in a row of my table in a Birt report in Eclipse, does anybody know how to do that?
Thank you
Not exactly sure which problem you are having but the solution should either be;
1 Insert a column in the table
Select the table
Right mouse click at top of column and insert a column to left or right
2.Insert a grid into an existing cell, without adding a column. (Usually you do this when you want to have a label and an aggregation in the same header or footer cell)
From the Palette, drag and drop a 'Grid" element into the cell,
set 'number of columns' to 2 and 'number of rows' to 1.
put you other elements (i.e. label and aggregation) into the seperate cells of the grid in the single cell of the table.

jqGrid cell formatter property

Is there a way to update formatter on a single cell of a column dynamically. I'm able to change the formatter for the entire column using
$(jQuery('#grid').jqGrid('setColProp', 'colName', {formatter: ''})).trigger('reloadGrid')
However when I use code below the grid refreshes but with no changes.
$(jQuery('#grid').jqGrid('setCell', j, 'colName', '','',{formatter: ''})).trigger('reloadGrid')
No, the formatter is for the whole column, not a single cell. If you need this level of granularity, you will need to use a custom formatter function with logic that can somehow detect that you are in that particular cell - such as by using the row object to get the row ID.

Want to fix some columns

I want to fix some columns so that user cannot drag and drop these columns and cannot reorder these columns also.Is it doable how can i do it.
There is code inside grid.jqueryui.js that uses the jQuery UI Sortable Interaction to enable drag-and-drop columns.
The following selector determines which columns can be dragged-and-dropped:
"items": '>th:not(:has(#jqgh_'+tid+'_cb'+',#jqgh_'+tid+'_rn'+',#jqgh_'+tid+'_subgrid),:hidden)',
So basically the selector will choose any column header that is not hidden and does not satisfy one of the following criteria:
#jqgh_'+tid+'_cb' - A checkbox column (for multi-select)
#jqgh_'+tid+'_rn' - A row number column (for primary key?)
#jqgh_'+tid+'_subgrid - A subgrid column
To satisfy your request, jqGrid would have to be modified to populate the items selector with blacklisted columns. Maybe the blacklisted columns could be flagged using a new colmodel option. This is all do-able, but requires changes to jqGrid itself...

Resources