Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

prboleme with the grid - insert and edit mode

Help
2011-08-22
2012-12-13
  • kurasaki miro
    kurasaki miro
    2011-08-22

    hello,
    my english is too bad, i appologize for the mistakes

    i have a problème with the insert and the edit button, to be more clear i have probleme with the grid itself! for exemple when i clicked to the insert button, an row empty was created to be filled with the new informations, but when i click into a column and i fill it with the text and go to the second column in the same grid, the grid delete what i juste write before, i can't fill all the row informations to be able to click to the save button! the grid is refreshing after each click into a column.

    i'm sorry if i wasn't  clear! and thank you for your help

     

  • Anonymous
    2011-09-12

    I encountered that problem too. I still don't know how to resolve it. In my case, I have a CodeLookupControl to select a parent data which its child will be displayed in the grid. When the selected parent is change, the grid is cleared (I put lookup listener in the CodeLookupControl).

    new LookupListener() {

    public void codeChanged(ValueObject parentVO, Collection parentChangedAttributes) {
                controller.setCategory((VOStdCategory)parentVO);
                grdStdCode.clearData();
                grdStdCode.resetButtonsState();
                lnkEdit.setEnabled(((VOBase)parentVO).getId() != null);
                logger.debug("codeChanged" + parentVO.toString());
            }
    }

    If I am not mistaken, when the grid is in insert mode, after I filled data in the first cell and moved the cursor to the second, the focus somehow dropped in the CodeLookupControl. It triggered codeChanged event which clear grid data.

     
  • mcarniel
    mcarniel
    2011-09-24

    About the first issue, it seems that you have not set all mandatory properties for columns, particularly, the attributeName property, which is used to store the cell content just edited into the value object binded to the current row.
    I think that there are a lot of errors reported in the console regarding the lack I have just described….