jQWidgets Forums

jQuery UI Widgets Forums Grid Angular2 Grid

This topic contains 7 replies, has 2 voices, and was last updated by  Peter Stoev 8 years, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Angular2 Grid #90574

    10numara
    Participant

    Why I have to use jquery my angular2 project.(“$.jqx.dataAdapter”)
    I think. It is not true. Because I should not use nested 2 javascript framework.

    Do you have dataAdapter for Angular2?

    Angular2 Grid #90575

    Peter Stoev
    Keymaster

    We do not use jQuery in our Angular 2 examples. $ is a keyboard character referencing a global namespace which as far as I know does not mean only jQuery and in general is used in other Javascript frameworks, too. Polymer is such example.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Angular2 Grid #90579

    10numara
    Participant

    Thanks but look this page http://www.jqwidgets.com/jquery-widgets-documentation/documentation/angular2/angular2-webpack.htm?search=
    Index.html have <script src=”jquery.js”></script>.

    And I try to delete jquery. The system is not working. Error is “Uncaught TypeError: Cannot read property ‘ajax’ of undefined”.

    Angular2 Grid #90580

    Peter Stoev
    Keymaster

    Hi 10numara,

    You do not use the current version of jQWidgets.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Angular2 Grid #90581

    10numara
    Participant

    It is “jqwidgets-framework”: “4.4.0”

    May be angular do not use like this source.
    http://www.jqwidgets.com/angular/angular-grid/index.htm#http://www.jqwidgets.com/angular/angular-grid/angular-grid-grouping.htm

    source: any =
    {
    datatype: “xml”,
    datafields: [
    { name: ‘CompanyName’, map: ‘m\\:properties>d\\:CompanyName’, type: ‘string’ },
    { name: ‘ContactName’, map: ‘m\\:properties>d\\:ContactName’, type: ‘string’ },
    { name: ‘ContactTitle’, map: ‘m\\:properties>d\\:ContactTitle’, type: ‘string’ },
    { name: ‘City’, map: ‘m\\:properties>d\\:City’, type: ‘string’ },
    { name: ‘PostalCode’, map: ‘m\\:properties>d\\:PostalCode’, type: ‘string’ },
    { name: ‘Country’, map: ‘m\\:properties>d\\:Country’, type: ‘string’ }
    ],
    root: “entry”,
    record: “content”,
    id: ‘m\\:properties>d\\:CustomerID’,
    url: “../sampledata/customers.xml”
    };
    dataAdapter: any = new $.jqx.dataAdapter(this.source);

    Angular2 Grid #90582

    Peter Stoev
    Keymaster

    The current version is not 4.4.0. It is 4.5.0 and does not require jQuery.

    Angular2 Grid #90584

    10numara
    Participant

    npm ERR! notarget No compatible version found: jqwidgets-framework@4.5.0
    npm ERR! notarget Valid install targets:
    npm ERR! notarget 4.4.0, 4.3.0, 4.2.1, 4.1.2, 4.1.1, 4.1.0, 4.0.0, 3.9.1, 3.9.0, 3.8.2, 3.8.1, 3.8.0, 3.7.1, 3.7.0, 3.6.0
    npm ERR! notarget

    Angular2 Grid #90585

    Peter Stoev
    Keymaster
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.