jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGird + Knockoutjs + Breeze.js

Tagged: 

This topic contains 8 replies, has 3 voices, and was last updated by  Peter Stoev 12 years, 4 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • jqxGird + Knockoutjs + Breeze.js #12544

    andrewcb
    Participant

    Has anyone had any success with this combination as I get a binding error “rawAccessorFn is not a function” in Breeze when I try to bind a list to an ko.observableArray. This is an upcoming framework and it would be very useful if it was supported.
    Thanks
    Andrew
    P.S. I have purchased the full license inc source.

    jqxGird + Knockoutjs + Breeze.js #12546

    Peter Stoev
    Keymaster

    Hi andrewcb,

    Unfortunately, we do not have any integration with Breeze.js. At present we do not have plans about that.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxGird + Knockoutjs + Breeze.js #12548

    isv485
    Member

    Hi andrewcb!

    I succeed to avoid “rawAccessorFn is not a function” and similar binding errors with use of the jqxDataAdapter as a source for the jqxGrid.
    jqxGrid was bound and got notifications from breeze updating its properties successfully.

    The only observed problem was propagating changes from Grid to breeze entities.

    I am not sure if this is done by design, but jqxGrid replaces knockout object on any grid row field modification. See my reported issue “JqxGrid field update replaces bound object “.

    Original knockout/breeze bindings can be lost.

    Hopefully Peter can clarify this issue.

    jqxGird + Knockoutjs + Breeze.js #12555

    andrewcb
    Participant

    Hi isv485 and Peter
    Many thanks for your thoughts.
    As a piece of code says a thousand word could you post the core to code that you implemented jqxgrid and breeze so I see where I am going wrong. Can a project be uploaded to the forum as an example to highlight the problems and give the jQWidgets team something to work against? I currently don’t see any way of uploading.
    I would have assumed that barring any conflicts such as the one I have experienced and the issue reported regarding the replacement of binding on update that these libraries should play with each other nicely. I would assume that any implementation of strategy such as that in breeze with Knockout will be broken by the way jqxgrid deals with bindings. Would that be a correct assumption?
    Thanks in advance.
    Andrew

    jqxGird + Knockoutjs + Breeze.js #12601

    isv485
    Member

    Hi Andrew!

    It’s correct assumption and Peter confirmed the problem with bindings.

    At this time I do not see any other problem with breeze-knockout-jqWidgets integration.
    My final testing will be completed as soon as jqxGrid update will be available with next release.

    I can drop some test project with breeze but at this time I did not find any way to upload project code to the forum.

    What did not work for me is direct jqxGrid source to knockout observableArray (created from breeze entities) binding. I’ve got exactly the same type of errors as you did and fixed it with simple use of the jqxDataAdapter.

    I am expecting that fixing binding problem may resolve this issue also, but not 100% sure about this.

    Regards,

    Serge

    jqxGird + Knockoutjs + Breeze.js #12606

    andrewcb
    Participant

    Hi Serge,
    Thanks for your feedback. I would be more than happy to work on this with you as I have full source for jqwidgets and I know my way round javascript and knockout quite well + have other developers that can look at this. If you want to send me any info please forwards to andrewcb at hotmail.co.uk.
    It seems quite poor that there is little isolation between libraries and one corrupts the others binding. I would be interested to understand the issue further to see if it is an inherent problem or just relates to jqxgrid.
    Thanks
    Andrew

    jqxGird + Knockoutjs + Breeze.js #12613

    Peter Stoev
    Keymaster

    Hi Andrew,

    Please, take a look at our EULA which you accepted by downloading our product. There are several important points in the license agreement about using the source code.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxGird + Knockoutjs + Breeze.js #12614

    andrewcb
    Participant

    Peter,
    What is your point regarding licensing as I think you need to be clear? We are a not for profit organisation that has purchase a commercial license to access the source for purpose of fault fixing, only one developer will be using the source at anyone time as we only have a team of three people. Knockout and Breeze are both under MIT. With the greatest of respect this is obviously an issue with the way the binding on your controls are used and an end user is providing more help on resolving, as you have merely stated it is not supported.
    Could you provide an update on the “JqxGrid field update replaces bound object “ as this may progress the issue?
    Thanks
    Andrew

    jqxGird + Knockoutjs + Breeze.js #12615

    Peter Stoev
    Keymaster

    Hi Andrew,

    The purpose of my post was to point you to take a look at the sections in the license agreement about distribution of the original or modified source. Regarding your question about the Grid with KO in this thread, I believe we have already answered that in the topic posted by Serge.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.