Monday, 15 August 2011

jquery - Adding .toggle() to cell content -


I would like to ask, is it possible to attach a toggling () function to a specific and specific cell in jqGrid? It is possible to change the contents of the cell using SetCell, but whatever I have tried, it only changes its CSS properties.

  grid.jgGrid ("setCell", cellId, colName, "", {visibility: 'hidden'});   

Do I have to show / hide / blink my text inside the cell on the grid's comptables?

Thanks in advance.

OK, you can change the color of text on a cell click. It is

It toggles every cell data. You can customize according to your need

jqgrid oncellselect function:

  onCellSelect: function (line, iCol, cellcontent, e) { Var td = $ ("#" + queued) .Find ("TD"); Var reqTd = td [iCol]; If ($ (reqTd) .attr ("class") == 'transp') {$ (reqTd) .removeClass ("transp"); } And {$ (reqTd) .addClass ("transp"); }}   

CSS

  .transp {color: transparent; };    

No comments:

Post a Comment