Categories | Question details Back To List | ||
selectCell - Not displayed as selected When the user selects a cell, the CSS forces it to display the background color as light gray, however when I use the selectCell() function this does not happen. Should it? var sTitle = "Search for "+sSearch var sURL = "<a href='#' title='"+sTitle+"' style='color:#f37c08;font-family:Arial;font-weight:bold;font-size:9pt;height:15px;text-decoration:none;' onclick=\"searchMenu('"+sSearch+"'); \">Search: "+sSearch+"</a>"; var iRow = (grdSelectFullMenu.getRowsNum() + 1); grdSelectFullMenu.addRow(iRow,[sURL]); grdSelectFullMenu.selectCell(iRow,0); Thanks, James Answer posted by dhxSupport on Jul 30, 2009 01:27 selectCell(r, cInd, fl, preserve, edit, show) method has parameters: r - row object or row index cInd - cell index [fl] - true if to call onRowSelect function (optional, false by default) preserve - preserve previously selected rows true/false (optional, false by default). Multi select mode should be enabled. edit - switch selected cell to edit mode (optional, false by default) show - true/false - scroll row to view (optional, true by default) So in your case iRow should be row index, not row id like at the addRow() method. |