We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Toolbar Customization

Thread ID:

Created:

Updated:

Platform:

Replies:

119750 Jul 28,2015 06:19 AM May 11,2016 04:39 AM ASP.NET MVC 6
loading
Tags: ReportViewer
Andrea Perazzolo
Asked On July 28, 2015 06:19 AM

Hi,
in the last version of the Patched ReportViewer, there is a problem when I try to show only some buttons or hide some.
The Toolbar does not appear, but only when Unobtrusive Support is enabled.
There was a similar problem that involved this, but was the entire toolbar that was not rendering in the Unobtrusive mode.
This time if I use the ToolbarItems.All value, the buttons are showed, with other values not.

    Thanks in advance

    Andrea Perazzolo

Sundaraj Muthunarayanan [Syncfusion]
Replied On July 29, 2015 05:10 AM

Hi Andrea,

Thanks for using Syncfusion products.

We are able to reproduce this issue we have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,
Sundaraj M

Javier
Replied On May 9, 2016 08:34 AM

Hi, 
I'm testing the latest version of the suite and I have the same problem of Andrea.

I want to show only page navigation button and refresh, but when I include the code to customize the empty bar is displayed
I used this code:

 @(Html.EJ().ReportViewer("reportviewer")
    .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local)
    .ReportPath("~/App_Data/GroupingAggregate.rdlc").ReportServiceUrl("/api/ReportAPI")
            .ToolbarSettings(   tb =>  tb.Items
                (Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.Refresh & 
                Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.PageNavigation))
    )

I tried showing other buttons (print, export) and the problem always happens. 
It only works if I not include the sentence .ToolbarSettings or if I the show all toolbar like this:

 @(Html.EJ().ReportViewer("reportviewer")
    .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local)
    .ReportPath("~/App_Data/GroupingAggregate.rdlc").ReportServiceUrl("/api/ReportAPI")
    .ToolbarSettings(   tb => tb.Items(Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.All)
  )

Thank you very much

Best reagrds

Javier Flores

Javier
Replied On May 9, 2016 08:38 AM

Hi,

Sorry forget to attach a picture.

Thank you very much

Best regards

Javier Flores

Attachment: report_36ea39f7.rar

Yuvaraj Devarajan [Syncfusion]
Replied On May 10, 2016 05:44 AM

Hi Javier,

Thanks for contacting Syncfusion support. 
 
We have internally used the bitwise operator for ToolbarSettings items selection. So use the |(OR) operator instead of &(AND) operator to enable the toolbar items as shown in the below code example, 
@(Html.EJ().ReportViewer("reportsample") 
        .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Remote) 
        .ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/RDLReport")) 
        .ReportPath("~/App_Data/GroupingAgg.rdl") 
        .ToolbarSettings(tb=> tb.Items(Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.Refresh | Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.PageNavigation)) 
        ) 

We have prepared a sample and it can be downloaded from the below location, 
 
Please refer to the below UG Documentation for more details, 

Regards, 
Yuvaraj D 


Javier
Replied On May 10, 2016 08:41 AM

Hi Yuvaraj D ,

I´m testing the example but return this error when execute,

Exception Details: System.IO.FileLoadException: Can not load file or assembly 'Syncfusion.EJ, Version=14.1400.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The assembly manifest definition does not match the reference to the assembly. (Exception HRESULT: 0x80131040)

Anyway, I also testing putting the option of a single button (without &) in my proyect and did not work (also test more options with |):

 @(Html.EJ().ReportViewer("reportviewer")
    .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local)
    .ReportPath("~/App_Data/GroupingAggregate.rdlc").ReportServiceUrl("/api/ReportAPI")
            .ToolbarSettings(   tb =>  tb.Items
                (Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.Refresh )
    )

Thank you very much

Best regards

Javier Flores

Yuvaraj Devarajan [Syncfusion]
Replied On May 11, 2016 04:39 AM

Hi Javier, 

I´m testing the example but return this error when execute, 

Exception Details: System.IO.FileLoadException: Can not load file or assembly 'Syncfusion.EJ, Version=14.1400.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The assembly manifest definition does not match the reference to the assembly. (Exception HRESULT: 0x80131040) 

Sorry for the inconvenience caused, 

In the previously shared sample, “Syncfusion.EJ” assembly is referred to Framework 4.5 version assembly instead of Framework 4.0 for MVC4 Syncfusion assemblies. So, please refer to the EJ.ReportViewer assembly in Framework 4.0 version(14.1400.0.41) to resolve this issue. Also, we have modified the previously shared sample and it can be downloaded from the below location, 

Anyway, I also testing putting the option of a single button (without &) in my proyect and did not work (also test more options with |): 

 @(Html.EJ().ReportViewer("reportviewer") 
    .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local) 
    .ReportPath("~/App_Data/GroupingAggregate.rdlc").ReportServiceUrl("/api/ReportAPI") 
            .ToolbarSettings(   tb =>  tb.Items 
                (Syncfusion.JavaScript.ReportViewerEnums.ToolbarItems.Refresh ) 
    ) 

We are unable to reproduce the mentioned issue at our end. We have prepared a video sample and it can be downloaded from the below location, 

If the issue still persists, then please share the issue reproducible sample or video to validate the mentioned issue at our end. 


Regards, 
Yuvaraj D 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;