Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
alant

Registered:
Posts: 51
Reply with quote  #1 
I'm working with a web designer on styling some of our pages.
He would like me to conditionally add a class to a table row.

I know how to add a style to a table row using the Layout Editor.
   Right click -> Styles -> Row; and manually type in the tag attributes.

Is it possible to do this in code?



__________________
Alan Telford
miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,656
Reply with quote  #2 
I think as long as the row has a unique Id you could do it.  But I haven't tried it that way.  I do change the color of cells/rows at run-time in code, but the unique Id is always there.
__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
alant

Registered:
Posts: 51
Reply with quote  #3 
In conjunction with the "Highlight a Record Row Based on a Condition" code customisation, I've got this working.

As per instructions: I had to add an Id="somename" to the table row styles.
And also add runat="server".

Then I can use that in the prerender code method.

Awesome.
Thanks!

__________________
Alan Telford
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement