I am trying to use javascript in the OnSummarySectionRender event however it does not seem to be getting computed.
I have a grid with some summary values. I have added an html table to display this data. I have given the td tags ids. I was hoping to be able to run javascript in the OnSummarySectionRender to insert the summary values and change the class in the td tags in the html table. My ultimate goal is to display the summary values with conditional colors. I may be going about this all wrong.
I can create the html and display the summary values ok but i can't get any javascript to run.
here is what I have tried so far;
anyone have any ideas?
I have a grid with some summary values. I have added an html table to display this data. I have given the td tags ids. I was hoping to be able to run javascript in the OnSummarySectionRender to insert the summary values and change the class in the td tags in the html table. My ultimate goal is to display the summary values with conditional colors. I may be going about this all wrong.
I can create the html and display the summary values ok but i can't get any javascript to run.
here is what I have tried so far;
Code:
in the OnSummarySectionRender event dim s as p s.TotalChange = alltrim(str(e.summaryValues.CHANGETTL.Total,250,2,"$(")) s.CurrentValue = alltrim(str(e.summaryValues.CURRENTVALUE.Total,250,2,"$(")) s.PortfolioPct = alltrim(str(e.summaryValues.PORTFOLIO_PERCENT.Total,250,0,"%")) s.EffectiveYieldPct = alltrim(str(e.summaryValues.EFFECTIVEYIELD.Total,250,2,"%")) s.TotalDividendYield = alltrim(str(e.summaryValues.DIVIDENDYIELDTTL.Total,250,2,"$(")) s.TotalAverageDividendYield = alltrim(str(e.summaryValues.DIVIDENDYIELDTTL.Average,250,2,"$(")) s.AverageDividendYieldPct = alltrim(str(e.summaryValues.DIVIDENDYIELD.Average,250,2,"%")) s.AverageChangePct = alltrim(str(e.summaryValues.PERCENTCHANGE.Average,250,2,"%")) s.PortfoloioReturnPct = alltrim(str(nPortfoloioReturnPct,250,4,"%")) s.PortfoloioYearReturnPct = alltrim(str(nPortfoloioYearReturnPct,250,2,"%")) no good summarySectionHTML = <<%html% <script type="text/javascript"> var ele = $('average_change') id of the td tag ele.className = "valueDown" one the class I want to use ele.innerHTML = "{s.AverageChangePct}" the value I want to insert into the td tag </script> %html% e.summarySectionHTML = evaluate_string(summarySectionHTML) no good e.summarySectionHTML = "<script type='text/javascript'>var ele = $('average_change');ele.className = 'valueDown';ele.innerHTML = "+s.AverageChangePct+"</script>"
Comment