Skip to content

Whats the equivalent for ng-grid's beforeSelectionChange in ui-grid? #4207

@germanger

Description

@germanger

In this section of the documentation:
http://ui-grid.info/docs/#/api/ui.grid.selection.api:PublicApi

I see two events:

rowSelectionChanges and rowSelectionChangedBatch

What is the equivalent for beforeSelectionChange that was available back in ng-grid?

Why I need it and why I was using it in ng-grid?:
When the user selects a row, an ajax call is performed. While this ajax call is happenning, I don't want to allow the selection to be modified, so I used to do this:

    beforeSelectionChange: function () {
        return !($scope.doingAjaxCall);
    },

which locks selection if ajax is happenning

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions