Wednesday, May 22, 2013

show selected items after filter

the 2 items selected before the filtering are not shown (as selected) in the ListGrid. So the user gets confused because he doesn't know that they are saved externally, so I would like to check them again for him. So that his view is consistent to what he already checked.

I found the forum a way, I write "addDataArrivedHandler" but how could I do this? has anyone ever done this and could help me?

Follow my code

private static ListGrid criaGradeAuxiliares() {  		final ListGrid gridAuxiliares = new ListGrid();  		gridAuxiliares.setDataSource(DataSource.get(Constantes.DS_USUARIO));  		//gridAuxiliares.setAutoFetchData(true);  		gridAuxiliares.setFetchOperation("usuariosFiscalizacao");  		ListGridField colunaNome = FabricaComponentes.criaListGridField(new ConfigListGridField().setNome("nome"));  		ListGridField colunaPerfil = FabricaComponentes.criaListGridField(new ConfigListGridField().setNome("perfil"));  		ListGridField colunaUF = FabricaComponentes.criaListGridField(new ConfigListGridField().setNome("siglaEstado"));  		ListGridField colunaEmpresa = FabricaComponentes.criaListGridField(new ConfigListGridField().setNome("empresaFiscalizadora"));  		gridAuxiliares.setWidth100();  		gridAuxiliares.setHeight(300);  		gridAuxiliares.setFields(colunaNome, colunaPerfil, colunaUF, colunaEmpresa);  		gridAuxiliares.setSelectionType(SelectionStyle.SIMPLE);  		gridAuxiliares.setSelectionAppearance(SelectionAppearance.CHECKBOX);  		gridAuxiliares.setShowFilterEditor(true);  		gridAuxiliares.setFilterOnKeypress(true);  		gridAuxiliares.setFetchDelay(ConstantesVisao.CAMPO_TAM_50);  		gridAuxiliares.setAutoFetchData(true);  	  		return gridAuxiliares;  	}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment