Announcement

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

    ListGrid setEditedRecord() function?

    1. SmartClient_v100p_2015-05-13_LGPL
    2. IE 11

    Hi,

    I know there's a getEditedRecord function for the ListGrid control, but is there a function equivalent to something like setEditedRecord?

    I have a disconnected dataset associated to the ListGrid, and some of the fields in the dataset are set to hidden. I'd like to assign data values to some of the fields in the edited record outside of what's displayed in the ListGrid. The data values are added through other controls that aren't the ListGrid, but I need to add those values to the same set of existing edited values accessed whenever getEditedRecord is called.

    #2
    Take a look at the Grid Editing overview (pervasively linked from editing-related APIs in ListGrid). It covers setEditValues() and other ways of manipulating the not-yet-saved values managed by the grid.

    Comment


      #3
      Awesome.

      Code:
      listGridName.setEditValues(rowNum, editedRecord)
      does what I need pretty well.

      Regards.

      Comment

      Working...
      X