Results 1 to 2 of 2

Thread: Can I create object of "Ext.grid.header.Container" outside?

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2013
    Posts
    55

    Default Can I create object of "Ext.grid.header.Container" outside?

    I want to create object of "Ext.grid.header.Container" first and will do some operation on it and then want to assign it to GridPanel.

    Can I create?

    Code:
     
    columns=[{
            text:'Name',
            dataIndex:'name', 
           sortable:false,
            hideable:false,
            flex:1},{
            text:'Email',
            dataIndex:'email',
            hidden:true},{
            text:'Phone',
            dataIndex:'phone',
            width:100}
    ];
    
    var headerCt = new Ext.grid.header.Container(columns);
    But, headerCt does not contain any object of header.

    Help.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    The header container for the grid isn't really set up to be instantiated outside of the grid, though it may be possible - you'd want to review the source to ensure that you're docking the header container correctly and that it participates in the horizontal scrolling of the grid columns.

    Ultimately what are you trying to do?

Posting Permissions

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