Page 1 of 1

ParametersPanelColumnsCount not work

Posted: Mon Jan 15, 2018 8:15 am
by jiehanlin
v2018.1.4
ASP.NET MVC > HTML5 Viewer > Viewer Settings
programming-manual
ParametersPanelColumnsCount:Sets the number of columns to display report parameters. By default, there are 2 columns.
but it always one columns.
so I found javascript code :
var countColumns = (countParameters <= 5) ? 1 : parametersPanel.jsObject.options.appearance.parametersPanelColumnsCount;

Re: ParametersPanelColumnsCount not work

Posted: Mon Jan 15, 2018 11:44 am
by Alex K.
Hello,

There is old behavior for all viewers.

But we have added additional option, will be available in the next build:

Code: Select all

@Html.Stimulsoft().StiMvcViewer("MvcViewer", new StiMvcViewerOptions()
{   
    Actions =
    {
        GetReport = "GetReport",
        Interaction = "ViewerInteraction",
        ViewerEvent = "ViewerEvent",
        DesignReport = "DesignReport"
    }
})

<script>
    //where jsMvcViewer - "js" + viewer Id
    jsMvcViewer.options.minParametersCountForMultiColumns = 1;
</script>
Thank you.