Announcement

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

    button recordComponent duplicates after drag and drop (copy)

    Hi,

    I have a TreeGrid with a button as recordComponent.

    Code:
      createRecordComponent: function(record, columnIndex) {
        if (this.assignmentModule != null) {
          return;
        }
        if (this.getFieldName(columnIndex) === 'status_code' && !record.treegrid_group_node) {
          return isc.IButton.create({
            _grid: this,
            height: 26,
            layoutAlign: 'center',
            title: I18N.enums.item_status[record.status_code],
            width: 118,
            click: function() {
              this._grid.openActivitiesPopup(record);
            }
          });
        }
      }
    I have set dragDataAction: "copy"

    After I drag the record, the new node shows up fine, but for some reason, the button duplicates (see attachment).

    Please advice.

    Thanks!
    Attached Files

    #2
    Forgot to mention I'm using SmartClient Version: v12.1p_2020-08-16/Enterprise Development Only (built 2020-08-16).

    Comment


      #3
      You haven't given us enough information to help, here - no mention of the data-binding situation, tree-linking mechanism, recordComponent settings, etc.

      We did test the basic premise of the report, that components are duplicated - but we didn't see the effect you describe.

      So we're going to need a standalone test-case we can run to see the problem.

      Comment

      Working...
      X