Results 1 to 3 of 3

Thread: Show and hide Gridpanel on click of Fileupload Save button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    7
    Vote Rating
    0
      0  

    Question 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
    119
      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
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •