Igniteui-angular: Grid: onCellSelection EventEmitter doesn't fire

Created on 15 Mar 2018  路  3Comments  路  Source: IgniteUI/igniteui-angular

View Issue Here (Stackblitz):
https://stackblitz.com/edit/angular-itxkwr

I have added (onCellSelection)="onSelect($event)" to my markup on my grid.



My callback doesn't execute when I select the cell.

The documentation says I need to import some class to make things work, but it fails to be specify as to where I should import these classes from relative to " ...} from 'igniteui-angular/...etc" and it doesn't mention what needs to be included in the Angular module or component. Are these class providers the component needs?

Documention:

import { IgxGridBindingBehavior, IgxGridColumnInitEvent, IgxGridComponent } from "../../../src/grid/grid.component";
import {
DataContainer,
IDataState,
IgxSnackbar,
IgxToast,
IPagingState,
PagingError,
SortingDirection,
StableSortingStrategy
} from "../../../src/main";

I'm using the igniteui-angular module pulled in from npm, so the above documentation is not helpful. I don't have "../../../src/main" in my project. Does this mean I should reference "igniteui-angular/main"?

It would nice if you had an angular-cli demo project implementing the grid. That would clear up everything.

documentation question

All 3 comments

@QuinntyneBrown
I suppose you've consulted the Grid readme doc which unfortunately is out of date with the current API of the grid component. #777
You may want to check this for up to date documentation and here is your updated
sample with the current onSelection event.

Thanks, that works! I have another question, but I will open up another issue for that.

@QuinntyneBrown closing this one as I see your question was answered reopen and comment if needed :)

Was this page helpful?
0 / 5 - 0 ratings