Skip to content

Commit

Permalink
Resolve issue #10 - pinColumn can not update the grid after it is alr…
Browse files Browse the repository at this point in the history
…eady rendered
  • Loading branch information
hyyan committed Jan 18, 2018
1 parent ceeec0f commit ebad654
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BBjGridExWidget.bbj
Expand Up @@ -699,6 +699,9 @@ rem --------------------api methods--------------------------------
else
#ColumnDefinition!.removeFieldAttribute(Field$,"PINNED",err=*next)
fi

script$="bbj_grid_widget_set_column_pin('" + Field$ + "','" + pin$ + "');"
#executeScript(script$)
methodend

rem /**
Expand Down
4 changes: 4 additions & 0 deletions js/BBjGridExWidget.js
Expand Up @@ -180,6 +180,10 @@ function bbj_grid_widget_set_column_width(columnid, width) {
$doc.bbj_grid_widget.columnApi.setColumnWidth(columnid, width);
}

function bbj_grid_widget_set_column_pin(columnid,pin) {
$doc.bbj_grid_widget.columnApi.setColumnPinned(columnid, pin);
}

function bbj_grid_widget_get_state() {

var state = $doc.bbj_grid_widget.columnApi.getColumnState();
Expand Down

0 comments on commit ebad654

Please sign in to comment.