I have a grid linked to a MySQL table. Where I want to display just the field contents, KoolGrid is working great but I have a couple of columns where I need to "lookup / calculate" the text to be displayed based on the associated DataField.
For instance I have a DataField called "status" which returns a single character "A / L / O" which needs to be displayed as a human readable status "Active / Listed / Sold". I'm guessing I need to somehow intercept the render for the cell to call some PHP or Javascript to do this "lookup" (and I can write the code to do the lookup) but I don't know how to intercept the render to change the text that will be displayed in the cell.
Similarly I have another Datafield called "sku" which I need to use to lookup the name of the product image and display it. I have a PHP routine (in Magento library) that looks up and returns the name, but again I don't know how to incercept the render to then return the appropriate html to display the image.
Any advice would be appreciated.
Thanks.