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.


Thread ID:





125374 Aug 11,2016 05:10 AM Aug 19,2016 09:03 AM ASP.NET Web Forms 6
Tags: Grid
Hrvoje Voda
Asked On August 11, 2016 05:10 AM

I'm using this in Global.asax   - > BundleTable.EnableOptimizations = True

This is in aspx page for Language:

 ej.Grid.Locale["hr-HR"] = {
        EmptyRecord: "Nema podataka.",
        Columns: "Kolone",
        SaveButton: "Spremi",
        CancelButton: "Odustani"                 
    ej.Pager.Locale["hr-HR"] = {
        pagerInfo: "{0} od {1} stranice ({2} stavaka)",
        firstPageTooltip: "Na prvu stranicu",
        lastPageTooltip: "Na zadnju stranicu",
        nextPageTooltip: "Sljedeća stranica",
        previousPageTooltip: "Prethodna stranica"

It only works when Optimization is set to False. Why? I need it to be true. Is there any workaround?

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On August 12, 2016 08:33 AM

Hi Hrvoje, 

We are unable to reproduce any issue after enabling the Bundle.EnableOptimization in the WebForms project. 

We have prepared a sample that can be downloaded from the following location. 

If you are still facing any issue, please get back to us with the following details. 

1)      Share the Bundle.Confg and Global.ascx files of your project with us. 
2)      After enabling the Bundle.EnableOptimization, can you able to see the preferred culture file (“ej.culture.hr-HR.min.js”) in the source tab of the browser? 
3)      Where do you placed the bundles scripts/css in sitemaster? Either above the ej.culture or below? 
4)      Do you refer unminified or minified scripts for your project? 
5)      If possible, modify the attached sample and replicate the issue. 

Seeni Sakthi Kumar S. 

Hrvoje Voda
Replied On August 17, 2016 03:21 AM

This is Bundle:

 bundles.Add(New ScriptBundle("~/bundles/WebFormsJs").Include(

            bundles.Add(New ScriptBundle("~/Scripts/Lib").Include(

            bundles.Add(New StyleBundle("~/Styles").Include(

            bundles.Add(New ScriptBundle("~/bundles/MsAjaxJs").Include(


 Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

        BundleTable.EnableOptimizations = True
    End Sub

I'm calling bundle from master page:

 <asp:PlaceHolder runat="server">
            <%: Scripts.Render("~/Scripts/Lib") %>    
           <%: Styles.Render("~/Styles") %> 
         <script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>


Still grid is shrinked, but I got language right. And icons beside Column are not showing.
I gess I'm missing some css class.

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On August 18, 2016 07:30 AM

Hi Hrvoje, 

We are able to reproduce the problem at our end with the given code example. 

You have bundled the ej.theme.css and ej.web.all.min.css i.e. one from minified and another one from unminified. So we suggest to use the either minified/unminified CSS throughout the application. Moreover, ej.web.all.min.css refers the ej.theme.min.css and ej.widgets.core.min.css. So in your application, theme has been loaded with the Grid data but ej.widget.core.min.css is not loaded which is the cause of the problem. So we suggest to use the following code example to load theme as well as core file. 

        bundles.Add(New StyleBundle("~/Styles").Include( 

We have prepared a sample that can be downloaded from the following location. 

Seeni Sakthi Kumar S. 

Hrvoje Voda
Replied On August 18, 2016 08:06 AM

 I tried your code but it doesnt work.
I still can't see arrow icons for paging and columns.

Hrvoje Voda
Replied On August 19, 2016 02:20 AM

I manage to get it to work.
I added this in my Bundle file:

 bundles.Add(New StyleBundle("~/bundles/StylesSyncfusion").Include(
                        "~/_COMMON/Styles/ej/flat-saffron/ej.widgets.all.min.css", New CssRewriteUrlTransform()))

But when I publish it it doesn't work.
Is there anything that needs to be added for publish site?

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On August 19, 2016 09:03 AM

Hi Hrvjoe, 

To resolve the dependency errors for the images, you can use the CssRewriteUrlTransform. In Visual Studio, by default, some font files are not including during Publish. To overcome this, use the mimeMap in the web.config under the following section. 

      <mimeMap fileExtension="woff" mimeType="application/font-woff" /> 
      <mimeMap fileExtension="ttf" mimeType="application/font-ttf" /> 
      <mimeMap fileExtension="eot" mimeType="application/font-eot" /> 
      <mimeMap fileExtension="cur" mimeType="application/font-cur" /> 
      <mimeMap fileExtension="png" mimeType="application/font-png" /> 

Refer to the following link: 

Seeni Sakthi Kumar S. 


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.