jQWidgets Forums

jQuery UI Widgets Forums TreeGrid TreeGrid DataSource

This topic contains 3 replies, has 2 voices, and was last updated by  monica.moga 9 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • TreeGrid DataSource #72047

    monica.moga
    Participant

    Hi,

    I tried to integrate TreeGrid with knockout by using an jquery example and specifying the source as an observableArray. The tree grid is rendered properly but after clicking the button(which should change “Nancy”), even if the local data is updated with the new value, this is not reflected on the UI. Could you please let me know how can I access the DataSource and change it such that it will refresh the ui accordingly?
    Here is my fiddle : http://jsfiddle.net/y6k9b94r/6/

    Thank you,
    Monica

    TreeGrid DataSource #72074

    ivailo
    Participant

    Hi Monica,

    You have to call updateBoundData after the changes in your array.

    Here is the fiddle.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    TreeGrid DataSource #72089

    monica.moga
    Participant

    Hi Ivailo,

    Could you please let me know if this is the proper way of changing the data from the source of a treeGrid( dataAdapter._source.localData() )? From my point of view it seems that I am accessing directly a private member but I didn’t find another way. Is there a method which I could use?

    Thank you,
    Monica

    TreeGrid DataSource #72143

    monica.moga
    Participant

    Hi,

    I figure it out. We can change the same array that we provided as a data source, because the grid seems to keep a reference to it.
    http://jsfiddle.net/y6k9b94r/9/

    Br,
    Monica

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

You must be logged in to reply to this topic.