Upvote 1

can't hide table row

Solved Victor Conesa 11 years ago

I added a click event to a button and selected a table row to hide, but a error shows up saying that the item selected is not valid.


Can I not hide table rows?

Best Answer
photo

Here's an example. It resizes a column to be 0, so it's effectively hidden. The other columns will move to fill the space where the column has been hidden.

Replies (2)
photo
1

What kind of table are you using? A text table, a data grid or a table?

photo
1

Same problem for me, using a Data List.

photo
1

You won't be able to add a 'hide' event to an individual row in a data list, you'll only be able to hide the entire data list.

photo
1

Well, you can actually hide a row by setting the height of the current row to zero. You need to base such height action on a variable set in the data master for the individual dataset. Otherwise all the data rows will be 'invisible'. Kent

photo
1

Hi Kms,


I need to be able to hide a column using the same logic of setting the width of a current column to zero. I presume that setting a column width to zero doesn't leave a gap in the table but allows the remaining columns to fill in the space. Is there a working example of how to implement the width or height action on a variable set in the data master?

photo
1

Here's an example. It resizes a column to be 0, so it's effectively hidden. The other columns will move to fill the space where the column has been hidden.

photo
1

Thanks so much Danielle!

photo
Leave a Comment
 
Attach a file