ext button click asp:gridiew footer row will be show

  1. #1

    ext button click asp:gridiew footer row will be show

    hello,
    i have taken ext viewport and border layout.and in center region i have taken a asp:gridview.
    but my problem is that i have taken a ext add button for showing a asp:gridview footer..but its nt working

    here is my codebehind addbtn code

    protected void btnadd_Click(object sender, DirectEventArgs e)
    {
    Gridview1.FooterRow.Visible = true;
    
    
    }
    please tell me how to do that.......

    regards,
    Rajshree.
    Last edited by Daniil; Jul 02, 2012 at 6:02 PM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    I think you need a hard Post Back to get this
    Gridview1.FooterRow.Visible = true;
    working.

    Please try to call:
    Gridview1.FooterRow.Visible = true;
    Gridview1.FooterRow.Update();
    The Update method is an extension to update the ASP.NET controls during DirectEvents/DirectMethods.

    Though I am not sure it will work in that case.
  3. #3

    ext button click asp:gridiew footer row will be show

    Gridview1.FooterRow.Visible = true;
            Gridview1.FooterRow.Update();
    its not working i m getting this below exception
    'Table' cannot have children of type 'LiteralControl'.
    what do u mean by hard postback?
    Last edited by Daniil; Jul 03, 2012 at 8:24 AM. Reason: Please use [CODE] tags
  4. #4

    ext:button click asp:gridview footer row will be show....................

    ext:button click asp:gridview footer row will be show....................
    Gridview1.FooterRow.Visible = true;
    Gridview1.FooterRow.Update();
    its not working i m getting this below exception
     'Table' cannot have children of type 'LiteralControl'.
    Last edited by Daniil; Jul 03, 2012 at 8:24 AM. Reason: Please use [CODE] tags
  5. #5
    Does not the following work also?
    Gridview1.FooterRow.Visible = true;
    Gridview1.Update();
    Quote Originally Posted by landerajshree View Post
    what do u mean by hard postback?
    I mean the common ASP.NET Post Back. The DirectEvent is just an AJAX request.
  6. #6

    ext:button click asp:gridview footer row will be show

    Gridview1.FooterRow.Visible = true;
    Gridview1.Update();

    thax its work

Similar Threads

  1. Replies: 11
    Last Post: Aug 08, 2012, 2:02 PM
  2. Replies: 4
    Last Post: Jul 17, 2012, 9:33 PM
  3. open a asp:gridview footer on ext add button click
    By landerajshree in forum 1.x Help
    Replies: 0
    Last Post: Jun 28, 2012, 11:35 AM
  4. Replies: 4
    Last Post: Sep 17, 2010, 10:33 PM
  5. Replies: 10
    Last Post: Aug 18, 2010, 2:22 AM

Tags for this Thread

Posting Permissions