Page 1 of 1

2 MvcViewer in 1 Page

Posted: Mon Nov 07, 2016 9:53 am
by junixquiaoit
Hi,
I creating an app which user 2 MvcViewer but i'm having problem with it.
The report loads on the 1st MvcViewer always. Is there any work around for this?

like this..

<div> //report 1
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions() {})
</div>

Re: 2 MvcViewer in 1 Page

Posted: Tue Nov 08, 2016 7:06 am
by Alex K.
Hello,

Please set the different component ID for each viewer

Code: Select all

<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>
Thank you.

Re: 2 MvcViewer in 1 Page

Posted: Tue Nov 08, 2016 12:17 pm
by junixquiaoit
Aleksey wrote:Hello,

Please set the different component ID for each viewer

Code: Select all

<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>
Thank you.
Set component ID? I can't seem to find where to set its ID, can you help me where can i set this?

Thanks,

Re: 2 MvcViewer in 1 Page

Posted: Tue Nov 08, 2016 12:20 pm
by Alex K.
Hello,

Please check the following code:
<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>

Thank you.

Re: 2 MvcViewer in 1 Page

Posted: Wed Nov 09, 2016 1:05 am
by junixquiaoit
Aleksey wrote:Hello,

Please check the following code:
<div> //report 1
@Html.Stimulsoft().StiMvcViewer("MvcViewer1", new StiMvcViewerOptions() {})
</div>
<div> //report 2
@Html.Stimulsoft().StiMvcViewer("MvcViewer2", new StiMvcViewerOptions() {})
</div>

Thank you.
Ok got it.. thanks, I didn't see that one. :)

Re: 2 MvcViewer in 1 Page

Posted: Wed Nov 09, 2016 6:23 am
by Alex K.
Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.