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. Image for the cookie policy date
close icon

Css not applying to grid

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?

3 Replies

BM Balaji M Syncfusion Team August 25, 2009 10:06 AM UTC

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.



CT Chetan Thummar June 18, 2011 09:21 AM UTC

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




ES Eswari S Syncfusion Team June 21, 2011 09:22 AM UTC

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















Loader.
Live Chat Icon For mobile
Up arrow icon