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.

Css not applying to grid

Thread ID:

Created:

Updated:

Platform:

Replies:

89410 Aug 24,2009 01:20 AM Jun 21,2011 05:22 AM ASP.NET MVC (Classic) 3
loading
Tags: Grid
Rema Balachandran Rajesh
Asked On August 24, 2009 01:20 AM

When i run my application i get the error "Microsoft JScript runtime error: 'window.mvcResourceManger' is null or not an object". How do i resolve this?

Balaji M [Syncfusion]
Replied On August 25, 2009 06:06 AM

Hi Rema,

Thank you for your interest in Syncfusion product.

The reported issue is reproducable because of RegisterClientMvcResourceManager which are not registered in html page.

RegisterClientMvcResourceManager is used to enable the script and CSS files to load the assemblies used in the client file.

Advantages:

• It compresses the page and reduces the time taken to render the page.

• It loads the script files very fast.

• It makes it difficult to read the compressed code, and hence provides protection against theft.


In ASP.NET MVC, RegisterClientMvcResourceManager is generally added in master page.

Script file should be included in the Body section as follows.

[ASPX]


<%=Html.RegisterClientMvcResourceManager() %>


Please refer the sample from the below link.

http://files.syncfusion.com/support/grid_mvc/Incidents/F89410/Mvc_SampleGrid.zip

We would also suggest you to refer the below documentation link

http://help.syncfusion.com/ug_73/GridMVC/defaultMVC.html


Please let us know if you have any questions.


Regards,
M. Balaji.


Chetan Thummar
Replied On June 18, 2011 05:21 AM

Hello,

i am facing same problem.
i have check your refference project which was mentioned by you.
but error in that project also.
still getting error.
i have put this code
" <%=Html.RegisterClientMvcResourceManager() %> "
in body but error is still there and also compile error like this
object does not contail RegisterClientMvcResourceManager

please solve my prob...



Eswari S [Syncfusion]
Replied On June 21, 2011 05:22 AM

Hi Chetan,

Thank you for your interest with Syncfusion products.

" <%=Html.RegisterClientMvcResourceManager() %> " is obsolete. So please use "<%=Html.Syncfusion().ScriptManager() %>".

Refer to the below code snippets:

The ScriptManager() method should be placed after all the components on the page. Generally,you can use this method at the end of the master page.

[Site.Master]


....
....

<%=Html.Syncfusion().ScriptManager() %>



Also ,please ensure that the handlers are added in the Web.config file.

Please refer to the following code snippets:

[Web.Config]


... .


type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=9.204.0.138,

Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false"/>




. . .




type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=9.204.0.138,

Culture=neutral, PublicKeyToken=3d67ed1f87d44c89"/>




We have prepared the sample for your reference and the same can be downloaded from the following link:

GridSample-1298748227.zip

Also, We would request you to check with the online UG from the following link:

http://help.syncfusion.com/ug_92/User%20Interface/ASP.NET%20MVC/Grid/default.htm?turl=Documents%2Faddingessentialgridtotheapplication.htm

Please let us know if you would require any further assistance.

Regards,
Eswari.S















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.

;