:: Forum >>

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
Tuesday, January 18, 2005
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
Wednesday, January 19, 2005
Tnz! Much more elegant!
MattiasF
Wednesday, January 19, 2005

This topic is archived.


Back to support forum

Forum search