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.
Syncfusion Feedback

Localize ejDropDownList generated by ejReportViewer component.

Thread ID:

Created:

Updated:

Platform:

Replies:

132297 Aug 24,2017 02:32 PM UTC Aug 26,2017 11:49 AM UTC JavaScript 1
loading
Tags: ejReportViewer
Vlad Golovin
Asked On August 24, 2017 02:32 PM UTC

Hi, sorry for my english.

How can i localize ejDropDownList (with enabled multiselect option) generated by ejReportViewer component. For example, if i need to translate text of headerTemplate to another language (from "Select All" to "Выбрать всё"), or change watermarkText.

I'am using Syncfusion Essential Studio 15.2.

Please, suggest.

Ravi Kumar Gurunathan [Syncfusion]
Replied On August 26, 2017 11:49 AM UTC

Hi Vlad, 
 
Thanks for contacting Syncfusion Support. 
 
How can I localize ejDropDownList (with enabled multiselect option) generated by ejReportViewer component. For example, if i need to translate text of headerTemplate to another language (from "Select All" to "Выбрать всё") 
We cannot able to localize the ejDropDownList with multiselect option. It is working based on the “Select All” headerTemplate, if we localize “Select All” text then the multiselect feature will not work. Therefore, we recommend you localize the watermark text instead of headerTemplate. 
change watermarkText 
The watermark text can be localized using “ejDropDownList” control through triggering the ejReportViewer “renderingComplete” event as shown in the below code snippet. 
$(function () { 
            $("#viewer").ejReportViewer( 
                { 
                    reportServiceUrl: "/api/ReportApi", 
                    processingMode: ej.ReportViewer.ProcessingMode.Remote, 
                    reportPath: "~/App_Data/GroupingAgg.rdl", 
                    renderingComplete: "LoadComplete" 
                }); 
        }); 
 
        function LoadComplete(args) { 
            if (args.reportParameters) { 
                var drpDwnObj = $("#" + args.reportParameters[0].ControlId).data("ejDropDownList"); 
                if (drpDwnObj) { 
                    drpDwnObj.model.watermarkText = "Выберите опцию"; 
                    $("#" + args.reportParameters[0].ControlId + "_hidden")[0].placeholder = "Выберите опцию"; 
                } 
            } 
        } 
 
 
Ravi kumar G 
 


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.

Warning Icon 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.Close Icon

;