Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Any way to give rows names? (Read 1539 times)
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Any way to give rows names?
Mar 28th, 2008 at 8:47pm
Print Post  
Would be helpful in table rows where rows (properties) change depending on state.

As of now I have to keep track of what a row index relates to as I remove and add properties. The index will be 5th or 6th depending on other properties which makes for spaghetti code.

If you could name each row as its added, then in the on cell clicked event handler you could just get the row name and switch on the name and not care at all about what index row means at that given moment.

Hopefully I am making sense?
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: Any way to give rows names?
Reply #1 - Mar 28th, 2008 at 8:54pm
Print Post  
On second thought I can implement this myself I guess. I just did. Well it's a thought anyway about how to make tables a little more useable out of the box.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Any way to give rows names?
Reply #2 - Mar 29th, 2008 at 10:23am
Print Post  
I suppose we could add a Row.Tag property to let you keep the property name there. At this time, you could keep it in the cell's Tag for the first cell in each row, and when any cell is clicked, check the first cell in the row to get the name.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint