Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Tables & Charts

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old May 8th, 2019, 12:05 PM
jpmiller jpmiller is offline
Junior Community Member
 
Join Date: Dec 2016
Location: Jacksonville, FL
Posts: 19
Smile Row Shading in Table

Hello,

I am trying to set my row shading to be every two rows. The problem I am having is that the first row starts shaded then the every two row pattern starts.
How do I get the shading to be correct?

This is the bit of code I am using to set the Shading Pattern:

for (var c = 0; c < numColumns; c++)
{
var cell = row.Cells[c];
cell.HAlign = "Center";
cell.SetBorders("Thin", "Black", "Top", "Bottom", "Left", "Right");
cell.Margins = { Top:45, Bottom:45, Left:20, Right:20 };

if (boxNum == 0)
{
cell.TextColor = "White";
cell.ShadeColor = "Black";
cell.ShadePct = 100;
}
}
}

table.ShadingColor1 = "Black";
table.ShadingPct1 = 30;
table.ShadingRepeat1 = 2;
table.ShadingColor2 = "White";
table.ShadingRepeat2 = 2;
table.ShadingType = "ByRow";

return table.MakeTags();

I have also included a screenshot.
Thank you for your help.
Attached Images
File Type: png worksheet.png (41.0 KB, 7 views)
Attached Files
File Type: pdf VDP WorksheetNEW.pdf (150.0 KB, 6 views)
File Type: zip test data.csv.zip (74.2 KB, 6 views)
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.