Re: Sorting Structures DataGrid using Linked Values fetched via DataObject Linked Vlaues

From: Date: Tue, 14 Aug 2007 19:32:49 +0000
Subject: Re: Sorting Structures DataGrid using Linked Values fetched via DataObject Linked Vlaues
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27816@lists.php.net to get a copy of this message
Hi, the main question was already answered by Justin, but I have another comment on your code: John Trow-Smith wrote: > $datagrid->_addDefaultOptions(array( > 'sort_property' => 'fb_linkOrderFields', > 'link_property' => 'fb_linkDisplayFields', > 'link_level' => 1); What is $datagrid here? The Structures_DataGrid class doesn't have an _addDefaultOption() method. The underscore is also indicating that the method is private, and should not be called by user code. Right solutions: - use the setDataSourceOptions() method of the Structures_DataGrid class - pass the options in the bind() call - use the setOptions() of the DataSource class Regards, Mark -- http://www.markwiesemann.eu

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