:: Forum >> Version 1 >>

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:

// assign custom IDs
obj.setRowProperty("values", [10111213]);

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

 
Hide row headers:

<style>
    .
active-scroll-left, .active-scroll-corner {displaynone!important}
    .
active-scroll-top, .active-scroll-data {padding-left0px!important}
</
style>

 
This discussion may help too: /javascript.forum.177.10/
Alex (ActiveWidgets)
Saturday, September 25, 2004



This topic is archived.

Back to support forum

Forum search