1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
    vijaypatil12 is on a distinguished road

      0  

    Post Unanswered: I want to show portal with two columns, how can i do that

    Unanswered: I want to show portal with two columns, how can i do that


    right now there is 3 columns, But I want to show only 2 colums
    code is as below
    Portal mainCenterPortal = new Portal(3);

    private Widget getUserPortlate() {
    nqmsReportView.getMainCenterPortal().setBorders(false);
    nqmsReportView.getMainCenterPortal().setStyleAttribute("backgroundColor", "white");
    nqmsReportView.getMainCenterPortal().setColumnWidth(0, .33);
    nqmsReportView.getMainCenterPortal().setColumnWidth(1, .33);
    nqmsReportView.getMainCenterPortal().setColumnWidth(2, .33);
    nqmsReportView.getMainCenterPortal().setAutoScroll(true);

    return nqmsReportView.getMainCenterPortal();
    }

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    Answers
    9
    micgala is on a distinguished road

      0  

    Default


    Really??

    How about
    Code:
    Portal mainCenterPortal = new Portal(2);
    
    private Widget getUserPortlate() {
    nqmsReportView.getMainCenterPortal().setBorders(false);
    nqmsReportView.getMainCenterPortal().setStyleAttribute("backgroundColor", "white");
    nqmsReportView.getMainCenterPortal().setColumnWidth(0, .33);
    nqmsReportView.getMainCenterPortal().setColumnWidth(1, .33);
    //nqmsReportView.getMainCenterPortal().setColumnWidth(2, .33);
    nqmsReportView.getMainCenterPortal().setAutoScroll(true);
    
    return nqmsReportView.getMainCenterPortal();
    }

Thread Participants: 1