ParametersPanelColumnsCount not work

Stimulsoft Reports.WEB discussion
Post Reply
jiehanlin
Posts: 1
Joined: Thu Jan 11, 2018 2:54 pm

ParametersPanelColumnsCount not work

Post 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;
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ParametersPanelColumnsCount not work

Post 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.
Post Reply