[CLOSED] GridPanel: How to remove header

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] GridPanel: How to remove header

    Hi,

    I want to clear the content of the GridPanel when a button is clicked.

    I tried gridpanel.ClearContent [server-side] but somehow this throws a javascript error.

    When I try to attach an empty DataTable to the Store, somehow the Header of the GridPanel remains.
    Server-Side:
    var stTabTrendingList = GridPanel_TabTrendingList.GetStore();
    stTabTrendingList.DataSource = new DataTable();
    stTabTrendingList.DataBind();
    I have checked that changing DataSource to empty DataTable makes the grid.ColumnModel.Columns.Count to zero (0) and the store.Reader.Count also to zero (0).

    Please advice.
    Last edited by Daniil; Oct 10, 2011 at 8:44 AM. Reason: [CLOSED]

Similar Threads

  1. Replies: 8
    Last Post: Sep 13, 2011, 8:47 PM
  2. [CLOSED] How to remove the TabPanel header bottom border?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 12, 2010, 3:09 PM
  3. [CLOSED] gridpanel header menu column checkbox remove
    By majestic in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 15, 2009, 11:28 AM
  4. [CLOSED] Remove sort Asc/Desc from grid header context menu
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 29, 2009, 2:59 PM
  5. Remove Sort Header
    By Kipetcoff in forum 1.x Help
    Replies: 2
    Last Post: Feb 15, 2009, 7:44 AM

Posting Permissions