Re: DataGrid - Column Addition

From: Date: Thu, 26 May 2005 18:56:33 +0000
Subject: Re: DataGrid - Column Addition
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19378@lists.php.net to get a copy of this message
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....


« previous php.pear.general (#19378) next »