EXT.NET 3.0.0 RELEASED!
Now with Tablet Support!
Ext.NET 3.0.0 is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
Results 1 to 2 of 2

Thread: Gridview column style

  1. #1
    Member
    Join Date
    May 2011
    Posts
    15

    Gridview column style

    For my grid I want set css class for some columns to have it with custom background color and font size.
    I did it with ColumnID Property and by js code for parsing grid metadata and columns collection - not the best way but unfortunatly I don't see any another to set css class or styles for grid column.
    Maybe someone have better idea how it can be done ?

    Thanks.

  2. #2
    Member
    Join Date
    May 2011
    Posts
    15
    My Version of Ext.Net is 1.0.4093.32349

    According to this doc http://dev.sencha.com/deploy/ext-3.3...xt.grid.Column
    I set appropriate property Css to testCssClass of Column item in ColumnModel
    Code:
    <ext:Column Width="200" Css="testCssClass" Hideable="False" MenuDisabled="True"/>
    But as result at client i got this one cells for my column
    Code:
    <td tabindex="0" style="testCssClasswidth: 160px;" class="x-grid3-col x-grid3-cell x-grid3-td-0 x-grid3-cell-first ">
      <div unselectable="on" class="x-grid3-cell-inner x-grid3-col-0">01 GROCERY</div>
    </td>

Similar Threads

  1. Replies: 0
    Last Post: Feb 28, 2011, 2:39 PM
  2. [CLOSED] Column header text style
    By Stefanaccio in forum 1.x Premium Help
    Replies: 1
    Last Post: Feb 03, 2011, 11:03 AM
  3. [CLOSED] GridView style problem
    By speedstepmem3 in forum 1.x Premium Help
    Replies: 3
    Last Post: Aug 26, 2009, 8:06 AM
  4. GridView style affected by scriptmanager?
    By tongyang in forum 1.x Help
    Replies: 5
    Last Post: Jul 09, 2009, 3:56 PM
  5. Get Gridview Column value using c#
    By speedstepmem3 in forum 1.x Help
    Replies: 1
    Last Post: Nov 13, 2008, 9:25 AM

Tags for this Thread

Posting Permissions