Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gustavo on Jul 30, 2009 13:38
open dhtmlx forum
Problem with enableAltercss()

I didnt find how to answer the firts post that i made, but here we go:

I will put some code here, is simple.

My JSP page:
...
<table name="higieneTable" class="dhtmlxGrid" gridWidth="800px" gridHeight="300px" oninit="configGrid(higieneTable);" style="display:none">
                        <tr>
                            <td align="left" width="200px" sort="str" type="ro"><strong><fmt:message key="global.label.nome"/></strong></td>
                            <td align="left" width="150px" type="ro"><strong><fmt:message key="global.label.unidade"/></strong></td>
                            <td align="left" width="200px" type="ro"><strong><fmt:message key="global.label.funcao"/></strong></td>
                            <td align="left" width="*" type="ro"><strong><fmt:message key="global.label.produto"/></strong></td>
                        </tr>
                                <s:iterator value="objects" id="list"><tr><td align="center">${list.nome}</td></tr></s:iterator>
                    </table>
...

my js file:

function configGrid(tableName) {
    tableName.setSkin("xp");
    tableName.enableEditTabOnly(true);
    tableName.setMultiselect(true);
    tableName.enableMultiline(true);
    tableName.setImagePath("../scripts/dhtmlxgrid/imgs/");
    tableName.enableTooltips("true,true,true,true,true");
    tableName.selectRow(0);
    tableName.attachHeader("#text_filter");
    tableName.enableAlterCss("uneven","");
    tableName.enableRowsHover(true,'grid_hover')
    //tableName.setSizes();

So, the enableAlterCss just works when i click on the header (sorting the rows)...

Answer posted by dhxSupport on Jul 31, 2009 01:42