Hi
I am creating a gridView dynamically and need to add a date chooser as editor if the data type is date.
resultGridView=new HtmlGridView();
resultGridView.getColumns().add(csr);
HtmlOutputText cHeading;
...............
while(isSomething)
{
cHeading.setValue(mData.getColumnCaption());
column.setHeader(cHeading);
UIOutput columnContent = new UIOutput();
columnContent.setValueBinding(
columnContent.setConverter(CfQueryBuilderUtils.getConverter(mData));
}
//columnContent.
column.getChildren().add(columnContent);
resultGridView.dataBind();
I don't need the whole code if you can point me to the right classes that should be good enough.
Thanks
Hi,
So, the advice I could give to you is to Submit a feature request to Infragistics.
Regards!
Thanks. But no thanks.
The requirement is to display all cell as output i.e. text and display dropdown or datechooser or a text field when user clicks a cell.
In other words I need to create dynamically something equivalent:
<ig:column >
<f:facet name="header">
<h:outputText value="Hire Date" />
</f:facet>
<f:facet name="editor">
<ig:dateChooser value="#{DATA_ROW.hireDate}"
editMasks="MM/dd/yyyy"
styleClass="igGridCellEditDate" />
<h:outputText value="#{DATA_ROW.hireDate}">
<f:convertDateTime pattern="MM/dd/yyyy" />
</h:outputText>
</ig:column>
You can find a sample method, that dynamically adds a DropDownList to a WebGrid here. Adding DateChooser should work in the same way.