2012-09-01 3 views
-2

질문 : 아래의 내부 스타일을 Telerik 보고서에 추가해야합니다. a0와 a1은 클래스입니다.
스타일 시트는 다음과 같습니다.이 보고서를 텔 레릭 보고서에서 허용하는 XML 스타일 시트로 변환하려면 어떻게해야합니까?
참조 : http://www.telerik.com/help/reporting/style-understanding-style-selectors.html
하지만이 링크는 하이퍼 링크 선택기를 XML 스타일 시트에 추가하는 방법에 대한 세부 정보를 제공하지 않습니다. 아래Telerik 보고서에 하이퍼 링크 스타일 추가

CSS는 :

a.a0:hover { 
     text-decoration: underline; 
} 
a.a1:link { 
text-decoration: underline; 
} 

답변

1
Below is how I worked around the above issue: 
ReportViewer.prototype.OnReportLoadedOld = ReportViewer.OnReportLoaded; 
       ReportViewer.prototype.OnReportLoaded = function() { 
        this.OnReportLoadedOld(); 

var reportFrame = document.getElementById(this.reportFrameID); 
        var reportDocument = reportFrame.contentWindow.document; 
        var body = reportDocument.getElementsByTagName("body")[0]; 

$(".a1", body).css("text-decoration", "underline"); 
$(".a0", body).css("text-decoration", "underline"); 

You can achive the hover like this: 

$(".a1", body).hover(function() { 
     $(".a1", body).css("text-decoration", "underline"); 
     }, function() { 
     $(".a1", body).css("text-decoration", "underline"); 
    }); 
+0

그것은 내 하루를 저장. – Amir