Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 21, 2009 19:42
open dhtmlx forum
dhtmlx grid cell hyperlink color need to change to red

hi,

I want to apply different colors in grid row cells depending on order processing
if success green , if fail red color, need to apply to all cells in a row.

but one of the cell in the grid is having hyperlink. Hyperlink cell showing in blue color(which is default for hyperlink text) and rest of the grid cells showing the color which i am setting up. How to set the color to hyperlink text while generating XML file

<cell style='color:red;'>dhtmlX^JavaScript:ShowURL('www.dhtmlx.com');^_self</cell>

appreciate your quick reply
Answer posted by Support on May 22, 2009 03:26
You can use "class" attribute to define color of rows, in such case you will be able to use next syntax, to affect nested links as well
XML
    <row id="2" class='red'>
        <cell>Blood and Smoke</cell>
        <cell>Stephen King^http://www.stephenking.com/</cell>
    </row>

HTML
<style type="text/css" media="screen">
    .red, .red a{
        color:red;
    }
</style>

Sample attached.




Attachments (1)
Answer posted on May 22, 2009 09:57

Cool, Thanks for providing info. quickly.