Grid - issue with styles

Hi,
I'm trying to add grid to my aplication.
Did all steps from:
http://help.syncfusion.com/User%20Interface/ASP.NET%20MVC/Grid

and from "behind" site everything seems to be ok.

BUT:

grid looks really bad-i'm pretty sure,that it don't see any css styles. But why?



1 Reply

GS Gowri S Syncfusion Team November 27, 2012 12:36 PM UTC

Hi Kamil,

 

Thanks for using Syncfusion Products.

 

We have created a sample for your convenience to display a grid. The same can be dowloaded from the following link :

 

http://www.syncfusion.com/downloads/Support/DirectTrac/101444/MvcApplication1-1787057034.zip

 

We suggest you to add reference for Syncfusion.Theme.Base.dll for versions 10.3.0.43 and 10.4.0.53 while using Grid.

 

In the above sample, we have added the following scripts in layout.cshtml :

 

    <script src="@Url.Content("~/Scripts/jquery-1.4.2.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>

 

and added Syncfusion StyleManager and ScriptManager as :

 

    @(Html.Syncfusion().StyleManager()

        .Register(stylesheets =>

        {

            stylesheets.Add(ComponentType.Grid);

        }))

   

…………………………………………

…………………………………………

 

    @{Html.Syncfusion().ScriptManager().Render();}

 

Please let us know if you have any other concerns.

 

Regards,

 

Gowri S.

Loader.
Up arrow icon