hello, i need to populate a GridView dynamically, i've created the colums already, but i don't know how to fill the rows???
I 've tried with Cells, but i don't find a function to put the label i want to show,
i got the following code:
tabla=new HtmlGridView(); HtmlOutputText tit=new HtmlOutputText(); tit.setValue("Monitoreo a Caja"); tabla.setHeader(tit); com.infragistics.faces.grid.component.Column col1=new com.infragistics.faces.grid.component.Column(); HtmlOutputText enc1=new HtmlOutputText(); enc1.setValue("Header 1"); col1.setHeader(enc1); tabla.getColumns().add(col1); com.infragistics.faces.grid.component.Column col2=new com.infragistics.faces.grid.component.Column(); HtmlOutputText enc2=new HtmlOutputText(); enc2.setValue("Header2"); col2.setHeader(enc2); tabla.getColumns().add(col2);
HtmlOutputText valor1=new HtmlOutputText(); valor1.setValue("valor1"); HtmlOutputText valor2=new HtmlOutputText(); valor2.setValue("valor2"); com.infragistics.faces.grid.component.RowItem ren1=new com.infragistics.faces.grid.component.RowItem(); com.infragistics.faces.grid.component.Cell cel1=new com.infragistics.faces.grid.component.Cell(); com.infragistics.faces.grid.component.Cell cel2=new com.infragistics.faces.grid.component.Cell();
HOW DO I PUT THE LABEL???????? ren1.getCells().add(cel1); ren1.getCells().add(cel2); tabla.getRows().add(ren1);
thanks.
Hi,
My requirement is a dynamic grid with a column that contains hyperlink to invoke a new url/page in pop-up.
I also need to share the modified grid data from main page to the new page shown in pop-up.
How can this column be added dynamically?
Regards
The behavior you've described doesn't seem to be right, based on what I'm seeing. So that we can investigate this in more detail, and provide you with a fix once one becomes available, please submit a support request to Infragistics Developer Support. You can provide the URL of this thread in your support request, so that we know the two are related.
Regards!
Are you just informing that there is no solution at present ?
Here is what I tried:
com.infragistics.faces.grid.component.html.HtmlColumn aColumn = (com.infragistics.faces.grid.component.html.HtmlColumn)application.createComponent(com.infragistics.faces.grid.component.html.HtmlColumn.COMPONENT_TYPE);HtmlColumnSelectRow col1Value = (HtmlColumnSelectRow) application.createComponent(HtmlColumnSelectRow.COMPONENT_TYPE);col1Value.setShowSelectAll(true);aColumn.setHeader(col1Value);aColumn.getChildren().add(col1Value);grid.getTemplateItems().add(aColumn);
This adds a column with checkbox option to select a row, grid.getSelectedRows() function works fine in bean.
However, the checkbox that should appear in header row to allow selection of all rows when selected, does not appear.
Can you suggest how to make the header row checkbox appear and work?
You could turn to that thread. I suppose the situation is very similar.
Thanks!
I need a dynamically created grid where the first column should allow row selection. This should be equivalent to adding <ig:columnSelectRow showSelectAll="true" /> tag to the grid. How can this be added programatically ?
This tag if inserted statically to jsp page does not work after columns are added at run time:
<ig:gridView id="grid1" dataSource="#{dynGrid.dataSource}" binding="#{dynGrid.grid}"> <ig:columnSelectRow showSelectAll="true" /> </ig:gridView>
regards,