jQuery UI Widgets Forums TreeGrid treegrid.refresh method issue

This topic contains 6 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • treegrid.refresh method issue #56314

    jzhong
    Participant

    Is this method actually working?

    I tested API through link http://jsfiddle.net/jqwidgets/eCwAX/

    I don’t see any difference.

    I need to have treegrid to be refreshed after I update values of multiple rows at the same time.

    treegrid.refresh method issue #56316

    Peter Stoev
    Keymaster

    Hi jzhong,

    The refresh method redraws the widget. Yes, it works and we use it internally as well. In general, you don’t need it. For updating values, my suggestion is – look at the samples which show how this should be done and also the API Docs.

    Best Regards,
    Peter Stoev

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

    treegrid.refresh method issue #56370

    jzhong
    Participant

    Hey Peter,

    Thanks for the quick response.

    I am aware of updating value for a single row. Let me rephrase my situation.

    Right now I am implementing a correlated update. When I update one column’s value of a row, I have its children’s values on the same column to be updated as well. I need to have treegrid to be refreshed to show the updated values for the row and its children. I don’t want to reload the whole page to have that effect. Would you give me some help on this? Thanks.

    treegrid.refresh method issue #56377

    jzhong
    Participant

    Hello Peter,

    Is there anyway to keep grid uncollapsed? I didn’t find it in api.

    treegrid.refresh method issue #56383

    Peter Stoev
    Keymaster

    Hi jzhong,

    There’s no API for expanding all rows with 1 method call or a property that will disable collapsing of rows.

    Best Regards,
    Peter Stoev

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

    treegrid.refresh method issue #56437

    jzhong
    Participant

    Hey Peter,

    Thanks for the quick response.

    I am aware of updating value for a single row. Let me rephrase my situation.

    Right now I am implementing a correlated update. When I update one column’s value of a row, I have its children’s values on the same column to be updated as well. I need to have treegrid to be refreshed to show the updated values for the row and its children. I don’t want to reload the whole page to have that effect. Would you give me some help on this? Thanks.

    treegrid.refresh method issue #56452

    Peter Stoev
    Keymaster

    Hi jzhong,

    You will have to implement some custom solution using the widget’s available API. The setCellValue can update the value of a given cell, the updateRow method can update all row values.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.