3.2.0

Hide the index / id column or give it custom count

I just discoverd the DHTML Grid and it kicks serious ass...
Ok, I am lazy, I tried to find the information I need in the Reference, but couldn't find it?

I have some questions about the first first column, the ID column, which is numbered from 0 to myCustomInteger...

Can I give all the rows in the grid a custom ID? For example, starting at number 400 and ending at number 500. Or numbers that are not in a logic order? And when sorting the table also sorting those numbers?

If that isn't possible then I can ofcourse hide the standard ID columns, and add my own ID column with my own index. But what is the className of the ID column? Or is there a built-in method to hide the ID column?

Thank you in advance...

I know that I can hide the first column using css, but I don't know the class attached to it.
Gerhard
September 19,
To change row IDs/labels:

// assign custom IDs
obj.setRowProperty("values", [10, 11, 12, 13]);

// assign custom row labels
obj.setRowProperty("text", function(i){return i + 400});


Hide row headers:

<style>
    .active-scroll-left, .active-scroll-corner {display: none!important}
    .active-scroll-top, .active-scroll-data {padding-left: 0px!important}
</style>


This discussion may help too: http://www.activewidgets.com/messages/177-10.htm
Alex (ActiveWidgets)
September 25,

This topic is archived.

See also:


Back to support forum