jQuery UI Widgets Forums Grid 2 way data binding

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  fatnjazzy 7 years ago.

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

    fatnjazzy
    Participant

    Hi,
    I have a data grid with some numbers comming from the server side.
    Evey few seconds I call the server and ask for updated data.
    I update the grid data as the following: this.myGrid.updatebounddata();
    Everytime I do that, the entire grid is reset.
    So for example if I filter the rows, once the data refresh, the filter disapear.

    on regular up I would apply ng-if or ng-show and the state will stay. this is different, is there anyway to do 2 way binding?

    Thanks

    2 way data binding #97461

    Peter Stoev
    Keymaster

    Hi fatnjazzy,

    updatebounddata rebinds and rerenders the Grid and that is why you get this effect. You actually ask for a different feature – the grid to keep its state when you rebind it. We do not have such functionality in our Grid.

    Best Regards,
    Peter Stoev

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

    2 way data binding #97467

    fatnjazzy
    Participant

    Isn’t that a little bit strange? this is the prower of angular…
    Do you think this is something that can be developed easily? I mean in angular this kind of binding is fundemental…
    Isnt that kind of the same? https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/bindingtoobservablearray.htm?light
    I sort something then click on update, the grid stays in the situation, which is what i need.
    Thanks

    2 way data binding #97469

    fatnjazzy
    Participant

    Hi,
    So, I have managed to do it with observablearray.
    But still i think this should be done with angular bindings.
    Thanks

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

You must be logged in to reply to this topic.