PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Datagrid Multisort

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures
View previous topic :: View next topic  
Author Message
inavanick



Joined: 07 Mar 2008
Posts: 1
Location: Utah

PostPosted: Fri Mar 07, 2008 1:02 am    Post subject: Datagrid Multisort Reply with quote

Hello,

I am using structures_datagrid along with both Array and SQL datasources. I am in need to use multi-sorting of columns, but doesn't seem to work with the Array datasource. I have read that not all data sources support multi-sort, but I just don't see how this can apply with Array as PHP supports array_multisort. And I have seen it used in the source code as well. I'm assuming I'm doing something wrong, and thought I would look to someone more experienced with this package than I.

The datagrid methods I am using are sortRecordSet() and setDefaultSort(). Also, I did make sure to use both of them prior to bind(). I would be most appreciative if someone could show me how to use multi-sort with Array datasource.

Secondly, I did try SQL entered directly in the bind() method along with connection options. The multisort does work, however, once the SQL query I pass in contains a subquery, the grid bombs. I tried hiding the subquery behind a view, with no success. If Array is not an option at this time for multi-sort, I would be grateful for help with this issue.

Thanks in advance for any help what-so-ever!
_________________
Issac
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1003

PostPosted: Sat Mar 08, 2008 12:16 am    Post subject: Reply with quote

(Answered via PEAR's bug tracker.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Structures All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software