I believe you could try using jQuery. The report parameters are rendered in a table under a div
tag with class
sqlrv-ParameterContainer
. Write a jQuery or JavaScript function that will extract the full innerHTML
from this div
ie. the table content and then extract the table row information like the <label>
or <input>
tags.
Create your desired table structure with <table><tr><td>{extracted sections}</td><td></td></tr></table>
or leave it to your requirement...
Then just append this new HTML structure in place of the original default structure.
In jQuery it will be like
$(".sqlrv-ParameterContainer").html();
which will give you the entire table structure that comes inside the parameter. Use XML parsing and get the input controls and all. Extract these controls as-is, don't change anything.
$(".sqlrv-ParameterContainer table").remove(); // it will remove the SSRS rendered default table from DOM
$(".sqlrv-ParameterContainer table").appendChild('<table><tr>......</tr></table>'); // Append your custom html structure here....
This was something that came to my mind quickly... I would suggest you test it... :)