PDA

View Full Version : two fields in the same grid column



dolittle
30 Dec 2009, 11:52 AM
Hi,

I have a column in a grid with product-price.
For some products there are both price and original-price.
In this case I want to show the original-price striked <strike>original-price</strike> beside the real price.

In the render function of the column, can I process two fields?

Thanks

CrazyEnigma
30 Dec 2009, 11:58 AM
Yes.
I don't know what your are sending into the render function, but the function has more than just the value to render.



var renderer = function(value, meta, record, rowIndex, colIndex, store) {
// Whatever you want to render.
};