1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    140
    Vote Rating
    0
    amey7p is on a distinguished road

      0  

    Default [Solved]change column color of single row(grid column names row)

    [Solved]change column color of single row(grid column names row)


    hi

    i want to know how can i change color of single column of first row of grid(row displaying names of columns) since i want to change color of column according 2 condition is its mandatory or not....& this for mandatory column only & that to for first row only.

    Plus moreover, i would like to know how can i delete particular row in grid & as soon as i delete that row there must be addition of one row with default values of columns...since i want to make 50 rows in grid consistent at any time...

    Thanks
    - Amey

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    1. For changing the look (or content) of a row/cell see the renderer config option in ColumnModel and/or the getRowClass() method in GridView. If you do a search in the forums for these you'll see plenty of examples.

    2. For responding to a row delete, see the rowremoved event in GridView or the remove event in Store.

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    140
    Vote Rating
    0
    amey7p is on a distinguished road

      0  

    Default thnx 4 quick reply

    thnx 4 quick reply


    thnx but that CSS thing will be applied to all columns right?i mean for data below those columns??

    i want it only for header column

    & also as mentioned by you there are some fire event but where is method/function which allows to grid row..

    thanks

  4. #4
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Just confirm for me:

    1. You want to change the color of the first cell in the Header? Take a look at getHeaderCell() in GridView.

    2. You want to know how to delete a row? Take a look at remove() in Store. (Assuming you are using the RowSelectionModel, when a delete is requested, get the current selection, call the grid's store's remove(), call the grid's store's add() - to keep your 50 rows - and then refresh the grid's view.)

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi