jQuery UI Widgets Forums Angular Grid row click event

This topic contains 1 reply, has 1 voice, and was last updated by  Gary 7 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid row click event #87090

    Gary
    Participant

    Hello…

    Making progress but, I was working on GRID component with event rowclick.

    The following code is called but, I don’t get any event information passed.

    OnRowclick(event): void {

    console.log(‘worked on row click’); // works

    var args = event.args; // event is undefined.
    console.log(args);
    // row’s bound index.
    var boundIndex = args.rowindex;

    console.log(boundIndex);
    // row’s visible index.
    var visibleIndex = args.visibleindex;
    // right click.
    var rightclick = args.rightclick;
    // original event.
    var ev = args.originalEvent;

    }

    Grid row click event #87098

    Gary
    Participant

    Peter,

    I found the error om my side.

    When I call the grid rowclick event the code in the template should read <angularGrid (OnRowclick)=”OnRowclick($event)”></angularGrid>.
    The key to Angular 2 passing the arguments is that the $event ($event) to component from angular jqwidgets control.
    I hope this makes sense.

    Thanks,
    Gary

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.