Hello,
I use a MultiComboBoxItem in the version 5.0 of smartgwt and i would like to get the value which is in editor item before the submission.
Take a look in the code :
In this context is there a way to do this ?
Thanks
I use a MultiComboBoxItem in the version 5.0 of smartgwt and i would like to get the value which is in editor item before the submission.
Take a look in the code :
Code:
MultiComboBoxItem item = new MultiComboBoxItem();
item.setOptionDataSource( AutocompleteDatasource.getDataSource() );
item.setDisplayField( AutocompleteDatasource.FULL_EMAIL_ADDR );
item.setValueField( AutocompleteDatasource.FULL_EMAIL_ADDR );
item.setAutoFetchData( true );
item.setLayoutStyle( MultiComboBoxLayoutStyle.FLOW );
//autosuggest list definition
final ListGrid pickListProperties = new ListGrid();
pickListProperties.setCellFormatter( new CellFormatter()
{
@Override
public String format( Object value, ListGridRecord record, int rowNum, int colNum )
{
String strValue = String.valueOf( value );
//Highlighting searched string
String search = "";//Getting the pending value...
if ( ( search != null ) && !search.isEmpty() )
{
str = str.replace( search, "<span class='hl'>" + search + "</span>" );
}
return str;
}
} );
final ComboBoxItem comboBoxProperties = new ComboBoxItem();
comboBoxProperties.setPickListProperties( pickListProperties );
item.setComboBoxProperties( comboBoxProperties );In this context is there a way to do this ?
Thanks