QDataGrid and html entities

thread: 3 messages  |  last: about 2 years ago  |  started: monday, january 11, 2010, 7:33 am pst


#1  |  flunki (Rathlau, Germany) Germany
Monday, January 11, 2010, 7:33 AM PST

Hi Forum,

I have a datagrid with QImagebuttons (Up, Down) as Datagrid Cells. The Html of the Buttons is shown with HtmlEntities on, so the buttons don't get rendered, and all umlauts are converted to their html entities.

How to disable html entities completely?

thanx in advance

flunki

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Monday, January 11, 2010, 8:42 AM PST

You can disable HtmlEntities on any QDataGridColumn... and you can even set HtmlEntities as you're creating the column itself:

$this->dtgMyDataGrid->AddColumn(new QDataGridColumn('Column Name', '<?= $_ITEM->DataToPrint; ?>', 'HtmlEntities=false'));

Please post w/ any other questions...

#3  |  flunki (Rathlau, Germany) Germany
Tuesday, January 12, 2010, 12:09 AM PST

Hi Mike,

thanks, it works!

mfg

flunki



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.