Jump to content


neocastelli

Member Since 24 Dec 2012
Offline Last Active Jan 19 2013 10:26 PM
-----

#4881 is posible to display an image in the datatables or flexigrid ?

Posted neocastelli on 25 December 2012 - 03:23 PM

Hello,
how you solved the problem?
you may send an example?
thanks
Now its ok.
Thanks all

Hello hunterbit,

This is the simple solution, if you know how to add the ajax class on this you are the boss :D.

$crud->callback_column('image',array($this,'Image'));

function Image($value, $row)
    {
        return '<a class="ajax" href="uploads/' . $value .'"><img src="uploads/' . $value . '" alt="' . $value . '" width="24" height="24" /></a>';
        
    }