⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

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



wenkhairu
  • profile picture
  • Member

Posted 10 January 2012 - 07:14 AM

hi,
is posible to display an image in the datatables or flexigrid ?
i have some extracode to combine some jquery plugin for displaying an image from database to datatables or flexigrid, but no luck for me, it doesn't work, may be you gusy have tried before and work,

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 12 January 2012 - 21:51 PM

[quote name='wenkhairu' timestamp='1326179660' post='259']
hi,
is posible to display an image in the datatables or flexigrid ?
i have some extracode to combine some jquery plugin for displaying an image from database to datatables or flexigrid, but no luck for me, it doesn't work, may be you gusy have tried before and work,
[/quote]

Did you try it to do with callback_column ( http://www.grocerycrud.com/crud/example/callback_column ) ?

wenkhairu
  • profile picture
  • Member

Posted 13 January 2012 - 04:09 AM

yeah, it works great, now it work for me, but there is another problem, the style have a little problem, the button and the text inside datatables, but that not the big promblem as long as the image still appear, but i though may be there is a way to change the css in other the style look like nice even there is an image inside it,

thanks for the quick replay :)

hunterbit
  • profile picture
  • Member

Posted 04 February 2012 - 01:28 AM

[color=#333333][font=arial, sans-serif][size=4]Hello,[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]how you [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]solved [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]the problem[/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]?[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]you may [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]send [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]an example[/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]?[/size][/font][/color]

[size=4][font="arial, sans-serif"][color="#333333"]thank[/color][/font]s[/size]


Now its ok.

Thanks all

neocastelli
  • profile picture
  • Member

Posted 25 December 2012 - 15:23 PM

[quote name='hunterbit' timestamp='1328318890' post='430']
[color=#333333][font=arial, sans-serif][size=4]Hello,[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]how you [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]solved [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]the problem[/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]?[/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4]you may [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]send [/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]an example[/size][/font][/color][color=#333333][font=arial, sans-serif][size=4]?[/size][/font][/color]
[size=4][font=arial, sans-serif][color=#333333]thank[/color][/font]s[/size]
Now its ok.
Thanks all
[/quote]
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>';

}