The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

Gridview column style

  1. #1

    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
    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
    <ext:Column Width="200" Css="testCssClass" Hideable="False" MenuDisabled="True"/>
    But as result at client i got this one cells for my column
    <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, 1:39 PM
  2. [CLOSED] Column header text style
    By Stefanaccio in forum 1.x Premium Help
    Replies: 1
    Last Post: Feb 03, 2011, 10:03 AM
  3. [CLOSED] GridView style problem
    By speedstepmem3 in forum 1.x Premium Help
    Replies: 3
    Last Post: Aug 26, 2009, 7:06 AM
  4. GridView style affected by scriptmanager?
    By tongyang in forum 1.x Help
    Replies: 5
    Last Post: Jul 09, 2009, 2:56 PM
  5. Get Gridview Column value using c#
    By speedstepmem3 in forum 1.x Help
    Replies: 1
    Last Post: Nov 13, 2008, 8:25 AM

Tags for this Thread

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.