Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Order Items - Why Print "2"?
01-25-2018, 10:08 AM, (This post was last modified: 01-25-2018, 10:49 AM by TurboPT.)
RE: Select Order Items - Why Print "2"?
Changes committed to SVN.

Paul, (or anyone else crossing this post) to know more as to how the column sort handing is accomplished:
  1. The desired columns to have sorting capability must have the tag <th class="ascending"> applied.
  2. The file that works with that CSS class is: javascripts/MiscFunctions.js.
  3. At the bottom of the MiscFunctions.js file, the window.onload event is set to a function named initial.
  4. Inside the bottom of the initial function is where the <th> tags are retrieved.
    • All the discovered <th> tags are looped to find any that have the ascending CSS presence, which is determined by the element's className property in javascript, and sets a function named SortSelect to the <th> element's onclick handler.
  5. The SortSelect function handles the sorting when a column name (or column heading) is clicked!
TIP 1: Note that a click anywhere on a column name (specified to sort) will trigger sorting. The small sort indicator is present for appearance and does not have any event handling.
TIP 2: Know that the sort handling expects all the rows to have the same number of columns.

Messages In This Thread
RE: Select Order Items - Why Print "2"? - by TurboPT - 01-25-2018, 10:08 AM

Forum Jump:

Users browsing this thread: 2 Guest(s)