Adding class ids to ExtJS Grid Columns

I understand you can add class ids to ExtJS components using the addCls method like so

this.myGrid.addCls('MyGrid');

can this be added as a constructor property? I want to add class ids to columns, however it would be nice to add this at construction time like so :

{
        dataIndex: 'packageName',
        text: 'Name of Packet',
        width: 300,
        filter: {
            type: 'string'
        }
        IsThereSomKindOfAddCLsEquivalent : 'packageName'

}

Answers


Hi Please try the below once {

        text: 'Opportunities',
        dataIndex: 'name_s',
        tdCls: 'allow-wrap',
        renderer: this.ColumnTextRenderer,
        flex: 1,
        maxWidth: 500
    }

Hope this helps you.


Need Your Help

jquery - prepopulate a php text field with session email address

php jquery codeigniter

I had a few ideas on how this would work, but nothing is working so far.

MySQL: SELECT with LEFT JOIN

mysql select join

how can I join two tables and make the second optional?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.