jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: angularGrid select event angularGrid select event #87864

    Bard
    Participant

    Hi Peter,

    I appreciate your efforts.

    This is sad to hear. But as far as I remember this
    $("#jqxgrid").jqxGrid('endcelledit', null, null, false); // not working but sort of like this
    workaround was working with Javascript by directly dealing with the DOM structure. However, with angular2 I can get the elementRef or ViewChild for example but cannot call methods for this element in the component. Are you aware of such possibility?

    Again, thank you very much for your help.

    in reply to: angularGrid select event angularGrid select event #87859

    Bard
    Participant

    Hi Ivo,

    thanks for trying to help. Changing the function definition is not helping unfortunatly. The problem is, that in this context, “THIS” refers to the grid, not to the component.

    
    editor.on('select', (event) => {
            if(event.args.type != 'api'){
              console.log(this);        // c {owner: b.(anonymous function), datafield: 17, displayfield: 17, text: 17, createfilterpanel: null…}
              this.Cellendedit(event); // Uncaught TypeError: _this.Cellendedit is not a function
              // this.myGrid.OnCellendedit(event); // Cannot read property 'OnCellendedit' of undefined
            }
          });
    

    Do you have another idea how to call OnCellendedit right after the select event of the dropdownlist in an jqxgrid is triggered.

    Best Regards,
    Martin

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