+ Reply to Thread
Results 1 to 4 of 4

Thread: sorting by columns

  1. #1
    JGD
    JGD is offline Junior Member
    Join Date
    Jul 2008
    Posts
    9

    Default sorting by columns

    Hi,

    My page displays results retreived from a database table. I would like to allow the user to order these reults based on table headings. How can I acheive this?

    Any feedback is appreciated,

    Regards

  2. #2
    dittonamed is offline Junior Member
    Join Date
    Aug 2008
    Posts
    2

    Default

    any luck with this?

  3. #3
    jweber is offline Senior Member
    Join Date
    Jun 2008
    Location
    Florida
    Posts
    167

    Default

    Have the column headings be hyperlinks that send a request to a controller, with params that define how to sort, then using these params to sort your array or create your SQL.

  4. #4
    JECKELS is offline Junior Member
    Join Date
    Mar 2009
    Posts
    9

    Default Try dojo datagrid

    Since Zend and Dojo play well together, you can remove the creation of an HTML table, and replace it with a dojo data grid. This took a while to figure out, but once done, enables sorting and read-on-demand paging fairly well.

    Once thing I haven't found yet (and had to force into it) was the concept of allowing filters on each field found. Not a filter of available values in the grid, just free-text typing that could be used as a filter to the server-side query returning the result.

    And on a side note, if anyone is aware of a declarative plugin for auto-displaying filter edits above each field of a grid, I would LOVE to hear from you about your suggestion.

    Good luck with that.

+ Reply to Thread

Similar Threads

  1. Sorting results of findDependentRowset
    By whitej8 in forum Databases
    Replies: 1
    Last Post: 05-21-2010, 04:10 AM
  2. pagination and sorting
    By sweta in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 05-19-2010, 07:02 AM
  3. sorting data by columns
    By MightyMouse in forum Databases
    Replies: 3
    Last Post: 09-04-2008, 02:17 AM
  4. Sorting table columns
    By JGD in forum Model-View-Controller (MVC)
    Replies: 3
    Last Post: 07-11-2008, 12:31 PM
  5. Sorting contents of zend_controller_response
    By tig12 in forum Model-View-Controller (MVC)
    Replies: 0
    Last Post: 01-15-2008, 12:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts