Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Format certain rows/cells
Previous Previous
 
Next Next
New Post 2/27/2008 9:22 PM
User is offline GaryR
9 posts
10th Ranked


format certain rows/cells 

I assume this can be done via a template, but I cannot seem to figure out how...  I am trying to simply bold or color a cell based on it's contents, or ideally, highlight the entire row, based on the contents of one of the fields.  How is this done? 

Thanks

 

 
New Post 3/2/2008 7:33 PM
User is offline Andrew Nurse
366 posts
8th Ranked






Re: format certain rows/cells 

At this point, there is no support for this kind of conditional formatting. I'll put it on the list of features to add though.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post 3/4/2008 10:11 AM
User is offline Will Howell
2 posts
10th Ranked


Re: format certain rows/cells 

In the same way that you can build the html for the cells of the table, just write an expression for one of the output columns to include the style attribute that you want based on a condition.  For example, instead of

select myCol1, myCol2, someOtherCOl
from myTable

 you'd use

select
  case
    when myCol1 > someOtherCol
      then '<b>'+myCol1+'</b>'
   else myCol1
  end as myCol1
 , myCol2, someOtherCOl
from myTable

 

The conditional part after the "when" can be anythnig that evaluates as a boolean, so it could use = for an exact text match or "like" for a pattern match.

 
New Post 3/4/2008 1:38 PM
User is offline Andrew Nurse
366 posts
8th Ranked






Re: format certain rows/cells 

Great idea! I hadn't thought of that. Hopefully that solves the problem while I work on getting conditional formatting support into a future version of the module.


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post 3/6/2008 4:46 AM
User is offline GaryR
9 posts
10th Ranked


Re: format certain rows/cells 

Perfect!!!  Thank you so much.

 

Gary

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Format certain rows/cells
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP