1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    13
    Vote Rating
    0
    Stetograph is on a distinguished road

      0  

    Default Unanswered: Customized TreeGrid does not update/refresh/rerender its TreeView

    Unanswered: Customized TreeGrid does not update/refresh/rerender its TreeView


    Hello Community,

    in my program there is a strange error, which I was not able to solve by myself or by existent posts:
    The error is related to TreeGrid. In particular it occures when a data point inside TreeStore is changed and this change should be propagated up to the TreeView.

    To make the situation more clear and provide some more information about (in my eyes) possible error sources the following insights are given:

    1.) The value that is updated is related to a ProgressBarCell! Meaning an update of the respective value should cause a change of the ProgressBar within the ProgressBarCell.

    2.) The TreeGrid is customized through a class 'CustomizedTreeGrid extends TreeGrid'. It is customized in order to include specific appearances and joint icon style behaviour. In this specialization of TreeGrid there is nothing changed concerning updating or refreshing.

    3.) The values changed are propagated to the TreeStore but NOT to the TreeView.

    Already several trials to solve this error were made:

    a.)
    Code:
    treeStore.update(itemToUpdate);
    treeGrid.getTreeView().refresh(false);
    //OR treeGrid.commitChanges();

    b.)
    Code:
    treeGrid.reconfigure(newModel,...)
    c.)
    Code:
    treeGrid.refresh(modelToUpdate);
    //this does not work as the Grid attribut of TreeGrid is null, hence the method jumps out without doing anything.
    d.)
    Code:
    treeStore.get(idx).changeValue(...);
    treeGrid.refresh(false);
    non of a.),b.), c.) or d.) solved the problem. But adhering to other posts the issue should be solved by at least one of the above calls.

    In another part of my program a Grid with a ProgressBarCell is working fine. Just changing the value in the ListStore and call a refresh(false) causes the view to change the progressbar. This works fine. However, it is not customized and it is no TreeGrid.
    So I have the suspicion that the error comes from the Inheritance/Customization or the fact that a TreeGrid is used.

    Someone has an idea what goes wrong?
    If more information are required please let me know and I will do my best to provide it.
    Any help would be higly appreciated. Currently I am some kind of desperate as I cannot solve this problem :/
    So, I'm looking forwards to a reply.

    Kind regards
    Stefan

  2. #2
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    13
    Vote Rating
    0
    Stetograph is on a distinguished road

      0  

    Default


    Hi again,

    the problem is solved. It was an error inside my code that was overseen.

    Greetz
    Stefan