Any way to disable the mouse over on bar and icon to toggle the parameter panel in SSRS 2008 R2
With a work around i recd from another discussion thread to make the 'button'(to show parameter panel) a bit bigger. But the image gets removed when a mouse over is made on the parameter collapsed bar. The workaround is that using JavaScritp to get the image element, and then using JavaScript to change its properties(or sytle).: 1. Open the 'Report.aspx' with text editor. The 'Report.aspx' can be found from C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages by default. 2. Add the following script to the end of the file: <script language = "Javascript"> function SetToggleParamImg() { dueTime += 50; if(dueTime > 3000) { clearTimeout(timer); return; } var obj=document.getElementsByTagName("INPUT"); var obj2 = document.getElementById('ctl31_ToggleParam'); for(var i=0;i<obj.length;i++) { if (obj[i].type=="image" && obj[i].title=="Show / Hide Parameters") { clearTimeout(timer); obj[i].style.height = "12px"; obj[i].src= "<image URL>"; obj[i].parentNode.parentNode.parentNode.style.height = "12px"; return; } } timer=setTimeout(SetToggleParamImg,50); } var dueTime=0 var timer; timer=setTimeout(SetToggleParamImg,50); </script> 3. Save the file. Now, the image is 12px height. It is a bit bigger than the original one. By the way, in order to change the image, please use the following code: obj[i].src= "<image URL>";
September 19th, 2011 11:18pm

Hi Dha-2010, When I view source of one report page including parameters in Report Manger, I noticed there is a build-in function Sys.Application.add_init(function() { $create(Microsoft.Reporting.WebFormsClient._Splitter, {"HoverStyle":"SplitterHover", "ImageCollapse":"/Reports/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.50.1617.0&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizCollapse.png", "ImageCollapseHover":"/Reports/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.50.1617.0&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizCollapseHover.png", "ImageExpand":"/Reports/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.50.1617.0&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizExpand.png", "ImageExpandHover":"/Reports/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=10.50.1617.0&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizExpandHover.png", "ImageId":"ctl31_ToggleParam_img","IsCollapsable":true,"NormalStyle":"SplitterNormal","Resizable":false,"StoreCollapseField":"ctl31_ToggleParam_collapse","StorePositionField":"ctl31_ToggleParam_store","Vertical":false}, null, null, $get("ctl31_ToggleParam")); It is easy to know why the image would be changed when we have mouse hover or click on the icon. The function had defined four images for each mouse action: ImageCollapse, ImageCollapseHover, ImageExpand, ImageExpandHove. One possible solution is to change the image in the function above with a complicate JavaScript, which is not suggested. If you really insist on changing it, for I do not an expert on JavaScript, I can only provide you this thread for reference: http://www.javascript-coder.com/button/javascript-button-p1.phtml Thanks, Lola Please remember to mark the replies as answers if they help.
Free Windows Admin Tool Kit Click here and download it now
September 22nd, 2011 8:31am

Can we not change the image source itself for ImageCollapse, ImageCollapseHover, ImageExpand, ImageExpandHove images.I cannot find them in ReportingServices install folder. Not sure where the source is for these images. Your help is appreciated.
October 4th, 2011 7:58pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics