Announcement

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

    Add a possibility to remove summary and formula fields

    In SmartClient 7.0 there is possibility to add and edit summary and formula fields from ListGrid header context menu if canAddSummaryFields / canAddFormulaFields is set, but the possibility to remove them is missing.

    The item "Remove summary column..." and "Remove formula column..." shoud be added to the header context menu when clicked on summary / formula column header.

    The problem is when the ListGrid ViewState is presistenly stored: user can add summary / formula coums, but he can't get rid of them if he doesn't need them any more.

    Somethink like this sould be added to ListGrid.getHeaderContextMenuItems method:

    menuItems.add({
    title: "Remove summary column " + this.getFieldTitle(fieldNum),
    grid: this,
    field: field,
    click: function (target, item, menu) {
    var fields = item.grid.getFields();
    fields.removeAt(fieldNum);
    item.grid.setFields(fields);
    },
    icon: "[SKINIMG]ListGrid/formula_menuItem.png"
    });

    Borut

    #2
    This makes sense; we'll add this capability.

    Comment

    Working...
    X