H5 Viewer菜单问题提问
H5 viewer菜单中的change render mode 这个按钮方法可以在后端实现吗?我现在遇到的情况是一张表长度太长,没发完全显示,触发change render mode按钮后才能完全显示,我想加载页面时就实现该按钮的方法。
请帮忙解决下,谢谢!
本帖最后由 KearneyKang 于 2019-3-21 15:10 编辑
问题收到,你这是需要在报表加载前去执行单页显示的那个 click事件。具体操作如下:
在报表加载完成后执行下面这个load事件,然后执行 单页显示的Click事件
documentLoaded: function reportLoader() {
$("").click();
},<script type="text/javascript">
$(function () {
var viewer = GrapeCity.ActiveReports.Viewer({
element: '#viewerContainer',//报表展示区
report: {
id: "Reports/多条件级联模糊过滤.rdlx"
},
reportService:
{
url: '/ActiveReports.ReportService.asmx'//服务引用
},
uiType: 'Desktop',//展示模式,移动端
documentLoaded: function reportLoader() {
$("").click();
},
reportLoaded: function (reportInfo) {
console.log(reportInfo.paremeters);
},
localeUri: 'Scripts/i18n/Localeuri.txt', //汉化
renderMode: 'Galley'
});
function refreshReport() { viewer.refresh() }
setInterval(refreshReport, 100000);
});
</script>
}
KearneyKang 发表于 2019-3-21 14:20
问题收到,你这是需要在报表加载前去执行单页显示的那个 click事件。具体操作如下:
在报表加载完成后执行 ...
ok!感谢大佬 不客气
页:
[1]