Pradvaar cruz Pradvaar cruz - 1 month ago 19
AngularJS Question

UI Grid CSS not working

I tried to create a grid using UI grid (Recent version of ngGrid) which is unstable version and integrated in my current project.

It is Not correctly displaying the (icon angle down and row selected icon) as needed While including the CSS file in project (by downloading the file and uploading) its giving me display errors as shown below.

But, if i directly give the web url for CSS file in my project...it is displaying correctly.

//web url:
<link rel="stylesheet" href="http://ui-grid.info/release/ui-grid-unstable.css" type="text/css">

//my url
<link href="~/Scripts/ui-grid-unstable.css" rel="stylesheet" />


I don't want to depend on web URL to display...is there any solution that I can implement on my side.

Please refer the image for before and after using web link.

link for Images: http://postimg.org/image/omhlfs8nd/

The top one is how it's supposed to and the bottom one explains my display error.

ThankQ for your time.

Answer

This is a simple error. Make sure you have the ttf,woff and svg files from the ui-grid download in your css folder. From you code, you should have it under ~/Scripts/ folder.