jQWidgets Forums

jQuery UI Widgets Forums Vue VUEX as JQXGrid datasource

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • VUEX as JQXGrid datasource #103195

    Gary
    Participant

    I have been working with Vue JQXGrid control and want to use as a data source from VUEX.

    I have it working when the VUEX data object is loaded in store before going to the component using JQXGrid.

    The problem I’m having is a timing issue between the time VUEX is populated and the JQXGrid is loaded. I have tried rebinding in a button and that works.

    What I want is to bind to VUEX upon entering the JQXGrid component.

    Any help would be appreciated.

    Thanks,
    Gary

    VUEX as JQXGrid datasource #103214

    Martin
    Participant

    Hello Gary,

    Can you try changing the async property of the source used for the dataAdapter?
    If this does not help you, could you provide us an example where this behavior can be observed?
    Thank you!

    Best Regards,
    Martin

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

    VUEX as JQXGrid datasource #103215

    Gary
    Participant

    Hello Martin,

    Tested the async parameter and that made no difference.

    I will make a sample and send over later.

    Thanks for your help.

    Best Regards,
    Gary

    VUEX as JQXGrid datasource #103403

    Gary
    Participant

    Martin,

    I have the use of VUEX (state Management) working with JQXGrid.

    For me, it came down to a timing issue between the Vuex Dispatch to retrieve backend data and time to populate data into the VUEX store. Thus when the store data was available to rebind (datebounddata) back to the grid data source.

    The fix for me was doing research on how to watch for a VUEX state change and ensuring that I then updatebounddata back to the grid.
    I’m in the process of cleaning up my code and putting in some comments so I can post what works for me.

    When time permits on your side, maybe a code review makes sense to ensure what I have working is in line with what you would find acceptable. As we all know there are always many ways to make the code work. I just want to ensure other code users have the best experience possible.

    Best Regards,
    Gary

    VUEX as JQXGrid datasource #103564

    Gary
    Participant

    Martin,

    I put together a small demo showing how I went about configuring the use of VUEX as a data source for jqxGrid.

    Just click on the following link:
    CodeSandbox JQWidgets jxGrid demo

    Let me know if you have any questions.

    Best Regards,
    Gary

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

You must be logged in to reply to this topic.