Hybrid View

  1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    7
    Vote Rating
    0
    email2sathya is on a distinguished road

      0  

    Question Show and hide Gridpanel on click of Fileupload Save button

    Show and hide Gridpanel on click of Fileupload Save button


    I need to show or hide a gridpanel on submission of the Fileupload control.Also i need to populate the gridpanel with the datastore once i render it.Kindly help me in this regard.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Try:
    Code:
    myform.getForm().on({
      'beforeaction': function() {
        grid.hide();
      },
      'actioncomplete': function() {
        grid.show();
      }
    });
    and
    Code:
    mygrid.on('render', function(c) {
      c.store.load();
    });

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    7
    Vote Rating
    0
    email2sathya is on a distinguished road

      0  

    Question


    Thanks fyr earlier reply.This is the updated requirement which i got.

    Step 1

    I have a Fileupload control inside a Form panel control.Upload the file to a server location.This is done without any errors.

    Step 2

    Once i had uploaded the file by clicking the Save button I had to show or hide the Gridpanel with data.

    Kindly help me in this regard.

Thread Participants: 1