Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
adding different editors to a colmn created to add in dynamically create gridView
posted

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();

ColumnSelectRow csr=new ColumnSelectRow();

resultGridView.getColumns().add(csr);

HtmlOutputText cHeading;

...............

while(isSomething)

{

column=new Column();

 

cHeading=
new HtmlOutputText();

cHeading.setValue(mData.getColumnCaption());

column.setHeader(cHeading);

UIOutput columnContent = new UIOutput();

columnContent.setValueBinding(

"value",
context.getApplication().createValueBinding("#{DATA_ROW."+property+"}"));

columnContent.setConverter(CfQueryBuilderUtils.getConverter(mData));

if (mData.isDate())

{

 

}

else if (mData.isDropDown()){

 

}

else{

 

}

//columnContent.

column.getChildren().add(columnContent);

resultGridView.getColumns().add(column);

}

resultGridView.dataBind();

}

I don't need the whole code if you can point me to the right classes that should be good enough.

 

Thanks