jQuery UI Widgets Forums Angular Angular @ngrx/entity Use

This topic contains 2 replies, has 2 voices, and was last updated by  Gary 6 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Angular @ngrx/entity Use #100572

    Gary
    Participant

    I have been using @NGRX/Entities for store support in my Angular 6 application, and I was wondering if it is possible to use an observable entity as an Observable Array for input into JGXGRID.

    I see that an Observable Array is available in the jqxDataAapter. However, I think this is for Knockout.js.

    I have not tried but, before going down that path, I was hoping somebody might have experience in this area.

    Thanks in advance for any info.

    Best Regards,
    Gary

    Angular @ngrx/entity Use #100582

    Martin
    Participant

    Hello Gary,

    Observable Arrays are supported also in jqxGrid. You can see a Demo about this here.

    Unfortunately, we do not have experience with @NGRX/Entities. You can try it and contact us again, if you have any problem with it.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Angular @ngrx/entity Use #100613

    Gary
    Participant

    Hello Martin,
    I just spent several days taking on trying to get NGRX/Entity observable output work as input to jqxGrid.

    I believe the difference exists with the Observable design of RX/JS and how JQWIDGETS define an observable. I did some research on Knockout vs. RX/JS, and clearly some similarities but different approached to the observable structure. Might be better to say Knockout is a framework with bells and whistles to UI management. Were as RX/JS is an observable establishing data stream management. If I couple the RX/ JS, NG/RX/Store, and NG/RX/Entity and UI feature capabilities provided by Angular 6, I can start to see a closer relationship between Knockout and let’s say Angular Store solution.

    However, to take a pure RX/JS Observable and plug it in for a data source for jqxGrid it did not cause an error but, just no data appeared in the grid.

    Here is the definition I used for source:

    // Accounts$: Observable<Account[]>;  RX/js observable

    // localdata: this.accounts$,
    // datatype: ‘obserableArray,
    // datafields: [
    // {name: ‘AcctName’, type: ‘string’},
    // {name: ‘AcctCategory’, type: ‘string’},
    // {name: ‘AcctType’, type: ‘string’},
    // {name: ‘AcctNumber’, type: ‘string’},
    // {name: ‘AcctOpenDate’, type: ‘date’},
    // {name: ‘AcctDescription’, type: ‘string’},
    // {name: ‘AcctBalance’, type: ‘number’},
    // {name: ‘AcctStatus’, type: ‘bool’}
    // ],
    // id: ‘_id’,

    If I can provide you with something, let me know.

    I’ll put in a formal request to add RX/JS as an observable data source for jqxGrid, jqxChart and, jqxPivotGrid etc.…. for a future release.

    Thanks,
    Gary

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

You must be logged in to reply to this topic.