Changing CommandItemStyle on internal skin

2 posts, 0 answers
  1. James
    James avatar
    60 posts
    Member since:
    Sep 2007

    Posted 30 Jan 2009 Link to this post


    I have a radgrid which is currently using the inox skin. I have a commanditemtemplate setup, but I want to change it's backcolor from the bluish hatched pattern.

    I'm trying to change the back colour to a pure black. If I change the CommandItemStyle backcolour, the result is black, but with a hatched pattern.

    Is the skin overriding the pattern, as I can't see what property can change the hatching to a solid colour.


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 30 Jan 2009 Link to this post

    Hello Bobby,

    Try setting the style in the CssClass using server-side code as shown below:
     protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
            if (e.Item is GridCommandItem) 
                GridCommandItem cmdItem = (GridCommandItem)e.Item; 
                cmdItem.CssClass = "commandRow"

    <head runat="server"
       <style type="text/css" >   
         background:Black !important; 

Back to Top