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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can't get Mobile Project / Grid Control working

Thread ID:





120164 Sep 7,2015 02:11 PM UTC Sep 9,2015 04:41 AM UTC ASP.NET MVC 3
Tags: Grid
Asked On September 7, 2015 02:11 PM UTC


I'm new to Syncfusion and I'm trying to get the mobile ASP.NET MVC controls working for my new project I have to make.
In my test project with web controls everything went fine, but in my mobile project I cant get the controls working.

I referenced the .dlls, added them to my 2 Web.configs and to my BundleConfig. The Intellisense in VS is working fine, it shows me EJ().
But the ej.mobile.all.min.js (in _Layout.cshtml) destroys my layout and in the grid page (/grid/index) the grid just shows the header names.

I've attached my project in a zip to this thread, maybe someone is kind enough to have a look at it, whats wrong?
The sample project is working fine, I don't know the differences, I tried to build it just like the sample project but it didn't work.

Thanks  in advance and and best regards

Attachment: Mobile_89c657f5.zip

Balaji Marimuthu [Syncfusion]
Replied On September 8, 2015 09:32 AM UTC

Hi Michi,

In the provided sample, the scripts are referred after RenderBody is initialized. Since scripts are required to render the EJ controls, we suggest you to refer to the scripts before calling the RenderBody.

Please refer to the below code example,








        App.renderEJMControlsByDef = false;


    <div class="container body-content" style="margin-top:100px">


        <hr />


            <p>&copy; @DateTime.Now.Year - Meine ASP.NET-Anwendung</p>



    @RenderSection("scripts", required: false)

jsRender helps to render the templates. So, include the jsrender.min.js file in your project.

bundles.Add(new ScriptBundle("~/bundles/ej").Include(




Specify the CSS also with full name instead of specifying *. Please refer to the below code example,

bundles.Add(new StyleBundle("~/Content/css").Include(





If you use only the Mobile controls in your project, then no need to refer the ej.widget.core.min file. It has to be referred only when we add the web controls.

Query: But the ej.mobile.all.min.js (in _Layout.cshtml) destroys my layout

In Mobile JS core, elements like Input, Button, Anchor tag that doesn’t contain data-role attribute are initiated specifically. Therefore, whenever the Mobile source file is referred in the sample, Input, Button, Anchor tag elements (without data-role attribute) are rendered as respective Mobile JS controls automatically. 

However, an option is provided to prevent this auto initialization. To prevent default rendering of Mobile JS controls, set App.renderEJMControlsByDef property as false with the script section as in the following code example.

We have modified your sample and the same can be downloadable from the following link:

Sample: Mobile


        App.renderEJMControlsByDef = false;



Balaji Marimuthu

Replied On September 8, 2015 10:12 AM UTC

Hi Balaji,

you are awesome! Thank you so much, it's hard to get started, I had things like jsrender included, but it didn't work so I changed things again and again.
But now it's working fine!

Thanks again, have a nice day :-)

Balaji Marimuthu [Syncfusion]
Replied On September 9, 2015 04:41 AM UTC

Hi Michi, 

We are happy that the provided suggestion helped you. 

Please get back to us if you need any further assistance.  


Balaji Marimuthu


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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