Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR] DataGrid - Column Addition
On 5/26/05, Edward Grace <ej.grace@imperial.ac.uk> wrote:
> Is there a way of modifying the Structures::DataGrid object so that using
> addColumn() does not wipe out auto generated columns?
>=20

I've asked for this before, but ended up doing things manually. See my
DB_DO_FB_Frontend code:
http://pear.reversefold.com/horde/c...B_DataObject_F=
 ormBuilder_Frontend%2FFrontend%2FShowTab
le.php#115

> I've looked through the code but cannot see where using the addColumn() m=
ethod
> wipes out auto column generation.

addColumn itself does not do this. The columns are auto-created only
if there are no columns added. See Structures/DataGrid/Renderer.php
function _setDefaultHeaders().

>=20
> The reason I want to do this is to implement buttons / links automaticall=
y for
> DataGrid generated tables from a DataObject source.  Essentially I am loo=
king
> for a way to automatically augment the generated table with controls (Add=
/
> Edit / or checkboxes) such as those mentioned in the referenced .Net obje=
ct:
>=20

That's the same reason I wanted to do it, see the other addColumn
calls in the above code. IMHO it's easy enough to manually add the
columns, so I didn't push further. However, I would think it would be
pretty easy to make the auto-column creation happen if the
generate_columns option is set in the DataSource. The quesiton then is
whether they should be before or after the manually added columns....

--=20
Justin Patrin

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
05-27-05 01:59 AM


Re: [PEAR] DataGrid - Column Addition
Why not come up with some functions called "insertColumnBefore" and
"insertColumnAfter".  Kinda like what was added to QuickForm.  Standard
"addColumn" parameter list but with an extra one for placement.  Or an
"appendColumn" that wouldn't interfere with the auto-generation system
and allow for trailing columns (which is where I put my "tools" column).

Maybe if I find some time...  :)

matte - matte@arubanetworks.com
webmonkey


Justin Patrin wrote:

>That's the same reason I wanted to do it, see the other addColumn
>calls in the above code. IMHO it's easy enough to manually add the
>columns, so I didn't push further. However, I would think it would be
>pretty easy to make the auto-column creation happen if the
>generate_columns option is set in the DataSource. The quesiton then is
>whether they should be before or after the manually added columns....
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Matte Edens
05-27-05 01:59 AM


Re: [PEAR] DataGrid - Column Addition
Justin Patrin wrote:
> I've asked for this before, but ended up doing things manually. See my
> DB_DO_FB_Frontend code:
> http://pear.reversefold.com/horde/c...owTable.php#115

Sorry for not implementing this, I must have lost your request in the
black hole that is my inbox.

Can you or someone add this to the bug system?  I want to try to get a
new release out soon, so if it is in the bug system it will get included
in the next release.

Thanks
Andrew

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Nagy
05-27-05 09:00 PM


Re: [PEAR] DataGrid - Column Addition
> Can you or someone add this to the bug system?  I want to try to get a
> new release out soon, so if it is in the bug system it will get included
> in the next release.

Sure.. In progress.

Report this thread to moderator Post Follow-up to this message
Old Post
Edward Grace
05-27-05 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:27 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.