remove/overide QDataGrid inline styling

thread: 4 messages  |  last: a year ago  |  started: thursday, february 11, 2010, 10:31 am pst


#1  |  kingwithin (San Francisco, CA) United States of America
Thursday, February 11, 2010, 10:31 AM PST

where is the delete function?

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Thursday, February 11, 2010, 4:21 PM PST

There is no built-in “Delete” function to QDataGrid.

You can add that by creating your own delete handler, and you can render a control which triggers your delete handler as its action by rendering a Delete button or a Delete QControlProxy in each row of your datagrid.

Here is an example of doing something along these lines:

http://examples.qcodo.com/examples/dynamic/inline_editing.php

#3  |  kingwithin (San Francisco, CA) United States of America
Monday, February 15, 2010, 10:50 AM PST

Hi, actually I meant to “delete” a posting or edit the name...but meanwhile...still haven't had answered what I put that is somewhat related, which is the ability to style the specific <th> tag for a column.  I can do <td> but not <th> for a column, but “width” for example I believe is done at the <th>?

I basically want to be able to control the width of individual columns from css, not the controller...thanks.

#4  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Tuesday, February 16, 2010, 11:03 PM PST

more recent versions of qcodo have support for this -- it IDs each th and td so that you can apply column-specific styles via css.



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