Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
fixing problems with the calculation of the grid width for ASP.NET MVC projects
Tags: width
06/04/2011
18:25
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

There are old problem with the horizontal scroll bars in ASP.NET MVC projects. The default CSS created for empty ASP.NET MVC projects (Site.css) include the following:

table
{
  border: solid 1px #e8eef4;
  border-collapse: collapse;
}

table td
{
  padding: 5px;
  border: solid 1px #e8eef4;

The lines are used for all versions of ASP.NET MVC from 1.0 till 3.0.

As the results the horizontal scroll bar will be displayed for all jqGrids. One can of source fix the problem removing of the lines from the Site.css, but the newcomer don't know this.

So I suggest to include additional lines in the ui.jqgrid.css to fix the same problems:

div.ui-jqgrid-view table.ui-jqgrid-btable { border-style:none; /*border-top-style:none;*/ border-collapse:separate; }
div.ui-jqgrid-view table.ui-jqgrid-btable td { border-left-style:none }

div.ui-jqgrid-view table.ui-jqgrid-htable { border-style:none; /*border-top-style:none;*/ border-collapse:separate; }
div.ui-jqgrid-view table.ui-jqgrid-btable th { border-left-style:none } 

I included commented lines with border-top-style:none; because I suspect, that the lines can fix additionally the height of jqGrid, but I don't test this myself.

Best regards
Oleg

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
52 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information