Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Select new added record

    Hi,

    GWT 3.0

    I have a list grid with the following config:
    Code:
     
    
    listGrid.setCanRemoveRecords(Boolean.TRUE);
    listGrid.setCanEdit(Boolean.TRUE);
    listGrid.setAutoSaveEdits(Boolean.FALSE);
    listGrid.setDeferRemoval(Boolean.TRUE);
    I add a new Record in the grid


    Code:
     
    
    Record newRecord = new Record();
    listGrid.startEditingNew(newRecord);
    listGrid.endEditing();
    The record is successfully added to the grid.

    Now if i try to click and select this newly added record , its never gets selected. The ones which were loaded initially from the datasource are selectable.

    I need to select this new record to perform some operation on it, any ideas why this is not working ?

    Thanks.

    #2
    I have the same problem with GWT 3.1p. Did anyone found a solution?

    Comment


      #3
      Select new added record

      I did not find a solution , but put a hack around it.

      On Selection of the record , get the record no from the event , using event.getRowNum() and store it in a global variable lets say selectedRowNum, then apply a list wide CSS policy by overriding the getCellCSSText that whenever this selectedRowNum = rowNum , aplly the background color styling.

      Comment

      Working...
      X