3.2.0

How I made the sorting column headers to appear clickable.

This is no rocket science, but stillI fell like contribute something back.

This was added to the source:
function sortMe() {}

And this is how I set my headers:

for (index = 0; index < columns; index++) {
obj.setColumnProperty(
"text",
"<a href=\"javascript:sortMe()\">" + header[index] + "</a>",
index);
}

The now header appears to be clickable.

How to get hold of the number of columns and how get hold of the header names is left to the reader.
MattiasF
January 18,
in grid.css, could also replace

.active-header-over{border-color:#f9b119; . . .

with

.active-header-over{cursor:pointer;border-color:#f9b119; . . .

(cursor:pointer rather thans cursor:hand for x-browser)

lovely stuff,

m

matthew
January 19,
Tnz! Much more elegant!
MattiasF
January 19,

This topic is archived.

See also:


Back to support forum