1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    107
    Vote Rating
    -1
    Answers
    4
    sencha.user is an unknown quantity at this point

      0  

    Default Unanswered: Remove column headers in dynamic grid

    Unanswered: Remove column headers in dynamic grid


    Hi,

    I am using dynamic grid and model plugin,
    http://www.sencha.com/forum/showthre...-dynamic-model

    I will send in query dynamically to php file and it forms grid, but when there is no data, it still has column header like,
    zzb4zY.jpg

    How do I remove column header? I want empty grid when there is no data.

    Thanks!

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    107
    Vote Rating
    -1
    Answers
    4
    sencha.user is an unknown quantity at this point

      0  

    Default


    Some more info,

    I have dynamic grid in the panel like,
    Code:
    {
          xtype: 'dynamicGrid',
          url: 'php/update.php',
          viewConfig: {
                autoRender: true
                }
    }
    If I am not sending parameter to PHP, I shouldn't get column header. Currently I have it like,
    Code:
    if (arrayValues == '')
                {
                    alert("Select a column name");
                }
                else
                {
                var dynamicGrid = Ext.ComponentQuery.query('dynamicGrid')[0];
                dynamicGrid.getStore().load({
                params:{
                    param1: [arrayValues]
                }
            });
    }
    I want to do something in that alert portion to clear column header, since I don't define store for this grid, I don't know how to do.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    107
    Vote Rating
    -1
    Answers
    4
    sencha.user is an unknown quantity at this point

      0  

    Default


    Anyone?