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
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
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; }
Comment