Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Sallanches, France
    Posts
    371
    Answers
    16
    Vote Rating
    1
    myput is on a distinguished road

      0  

    Default Answered: Hide Toolbar of NestedList when DetailCard

    Answered: Hide Toolbar of NestedList when DetailCard


    Hello,

    I have a nestedList, and when i get the detailCard, i have a list. i can with the toolbar of nestedlist navigate, it's good. But when i open the detailcard of the list, i have 2 toolbar. The first is my nestedlist toolbar, and the second is my list toolbar. the both contain the button back.

    I would like to hide the nestedlist toolbar in the detailcard of the list, like that, i will have just my list toolbar with back button, and when i will be in my list (detailcard of nestedlist) i show again the nestedlist toolbar.

    Is it possible?

  2. I you want, the solution is in the detailCard to hide the toolbar with:
    Code:
    		App.views.DirectoryNestedList.toolbar.hide();
    		App.views.DirectoryNestedList.doComponentLayout();
    and show it in the backButton of the detailPage:
    Code:
    		App.views.DirectoryNestedList.toolbar.show();
    		App.views.DirectoryNestedList.doComponentLayout();
    Don't forget to do doComponentLayout();

  3. #2
    Sencha User
    Join Date
    Sep 2011
    Location
    Sallanches, France
    Posts
    371
    Answers
    16
    Vote Rating
    1
    myput is on a distinguished road

      0  

    Default


    I you want, the solution is in the detailCard to hide the toolbar with:
    Code:
    		App.views.DirectoryNestedList.toolbar.hide();
    		App.views.DirectoryNestedList.doComponentLayout();
    and show it in the backButton of the detailPage:
    Code:
    		App.views.DirectoryNestedList.toolbar.show();
    		App.views.DirectoryNestedList.doComponentLayout();
    Don't forget to do doComponentLayout();

  4. #3
    Sencha User
    Join Date
    Jan 2013
    Location
    Bangalore
    Posts
    9
    Vote Rating
    1
    SunilRao is on a distinguished road

      1  

    Default


    Hi,
    Even i have the same problem . I'm using navigationView and the above code doesn't seem to work here.
    Please can anyone help me......

Thread Participants: 1