:: Forum >>
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
Sunday, September 19, 2004
To change row IDs/labels:
obj.setRowProperty("values", [10, 11, 12, 13]);
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)
Saturday, September 25, 2004
This topic is archived.
Back to support forum
Forum search