Announcement

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

    CellFormatter not working for edited cell when cell editor is ComboBoxItem

    We are using CellFormatter for the fields having combo box as an editor. When we edit that cell, and select some other value from combo box then after clicking out side that record, it shows old formatted cell value.

    We found that record which is provided in the format method of CellFormatter is not the one having edited values. Also the Object value parameter also does not contains edited value always.

    I have also tried using CellEditValueFormatter, but still having same problem.

    Please provide some solution for this.

    Also there is one more problem, when we sort such fields, it does not sort by the display value.
    Last edited by pratik.thaker; 15 Mar 2012, 06:45.

    #2
    Can anybody please provide some suggestion ?

    Comment


      #3
      SmartGWT version 2.5
      GWT version 2.3.0
      Firefox 11 and above
      Internet Explorer 7

      I am also facing this problem. Specific scenario:
      Livegrid that allows edit and adding new rows.
      Some cells are combo boxes, all of which contain cell formatters to show a display value against a selected id.
      Steps to replicate:
      1. Edit a row, or add a new row
      2. While the row is in edit mode, click elsewhere on the grid to get out of edit mode.
      3. Now double click on the row again to edit it, change the value of the combo box cell. It still shows the old value.

      However, if you save (via GWT-RPC), the intended value of that row is propagated to the server side, not the incorrectly displayed value. This leads to the belief that the cell formatter is not receiving the edited values of the row, hence it does not update the displayed value of the combo box cell.

      Comment


        #4
        Read the Grid Editing Overview, paying close attention to editValues.

        Comment

        Working...
        X