[ 3 posts ]

Thibaut Hourlier

  • Username: Thibaut
  • Joined: Fri Aug 14, 2009 2:11 am
  • Posts: 3
  • Offline
  • Profile

Rows management

Post Posted: Fri Aug 14, 2009 3:02 am
+0-
Hi, I am new to YUI and I want to deal with tables. The features for the columns really interests me but i wish i can do the same thing with the rows, like moving rows or hidding rows. I did not see a feature enabling it.

So my question is: did I miss something in the API and these feature exists or is it a feature that is coming in new versions or do i have to code it myself?

Thanks, Thibaut

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: Rows management

Post Posted: Fri Aug 14, 2009 3:53 am
+0-
You have missed nothing. The DataTable is column-oriented, like a table in a DataBase, it is not a regular grid like that on a spreadsheet.

Hiding columns is usually done by assigning a className in the function assigned to the formatRow configuration attribute, which has the display:none attribute.

As for moving rows, there is nothing built in, not even a moveRow method. You have to delete the row from its position and add it elsewhere.

Thibaut Hourlier

  • Username: Thibaut
  • Joined: Fri Aug 14, 2009 2:11 am
  • Posts: 3
  • Offline
  • Profile

Re: Rows management

Post Posted: Fri Aug 14, 2009 4:22 am
+0-
Ok, thank you.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum