jQWidgets Forums

jQuery UI Widgets Forums Grid 2 way binding

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • 2 way binding #75374

    Al
    Participant

    I am using refreshdata() to refresh he grid that is bound to localdata, for example:

    $(‘#jqxgridLevels’).jqxGrid(‘getInstance’).refreshdata();

    I am interested to know if this binding works 2 ways. Specifically, it I update the grid directly, for example:

    var rows = $(“#jqxgridLevels”).jqxGrid(“getrows”);
    var row = rows[symbolactive];
    row.switch = 1

    how do I reflect that in the datafield that is bound to the row?

    thanks for your attention!

    2 way binding #75375

    Peter Stoev
    Keymaster

    Hi Al,

    1. Using non documented internal API is never good approach.
    2. Look at the Grid’s demos for the available binding options.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    2 way binding #75377

    Al
    Participant

    Peter,

    I don’t understand. I picked up this code from examples. What specifically is undocumented?

    thanks

    2 way binding #75378

    Peter Stoev
    Keymaster

    Hi Al,

    There are no such examples about jqxGrid on our website. Look at the Grid’s demos for the available binding options.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.