Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ivo Marvan on Apr 09, 2008 09:05
open dhtmlx forum
CSS class for option inside ,"co","coro" cell datatype in grid

I need add data dependent CSS class to options in coro (co) cell type.
-------------------------------------------------------------------------------------------------
My XML for columns and data definition look like this:
    <option value="48" class="deleted">FH 12 8x4 R PR1</option>
    <option value="49" >FH 12 8x4 R HP</option>
    <option value="50" >FH 12 8x4 R HR</option>
    <option value="51" class="deleted">FH 16 4x2 R PK3</option>
    <option value="52" class="deleted">FH 16 4x2 T PE3</option>
-------------------------------------------------------------------------------------------------
Part of CSS looks like this:
.deleted {
text-decoration: line-through ! important;
color:gray;
}
-------------------------------------------------------------------------------------------------
I need, that values in rows, where flag "deleted" is turn on, are visible in grid with some specific formatting.
Answer posted by Support on Apr 10, 2008 02:08
Unfortunately it is not possible.
The co|coro excells uses native select control to show list of option, and such control doesn't allow cross browser way to style options.
The parser of dhtmlxgrid will ignore any attributes of option tag, except of value attribute.