⚠ 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

Export action seems export html data



midnigther
  • profile picture
  • Member

Posted 14 September 2012 - 01:27 AM

I'm using callback_column () function to modify the field output from my grid. When I export the data via Export action (XLS) the callback field has HTML inside.

[img]http://www.upl.co/uploads/Screen-Shot-20120914-at-217.png[/img]

victor
  • profile picture
  • Member

Posted 14 September 2012 - 10:32 AM

Because this function (callback_column () ) returns the modified string.
I want to receive not the text, and for example the schedule:
'<div style="height: 3px; width:'.($row->rating*10).'%; border:solid #666 1px; background-color:#CCC;" title=" rating:'.$row->rating.'"/>';
[attachment=282:a.jpg].
What the result should be in this case, when I will export into Excel?
So it works well.
Sorry, My English is bad. I find it hard to express my thoughts

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

Posted 15 September 2012 - 17:19 PM

You are right [member='midnigther'] here you can see the fix for it: https://github.com/scoumbourdis/grocery-crud/commit/b325c37e558cce940667d163d1235eae7d8e46c2

midnigther
  • profile picture
  • Member

Posted 18 September 2012 - 20:51 PM

[quote name='web-johnny' timestamp='1347729544' post='3448']
You are right [member='midnigther'] here you can see the fix for it: https://github.com/s...1235eae7d8e46c2
[/quote]

Thanks a lot [member='web-johnny']. You fix it fast! :D