ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid Horizontal scrollbar
Title:
B
I
{code}
?
I see all grids in your samples, width all are 100%. Is it possible to set fix column size, and then scrolling horizontally ?
Save Changes
Cancel
Meccanica Rossi
asked at 07 Jul 2017
you can set `.Width` or put the grid inside a div that has width set
at 07 Jul 2017
Omu
I tried to set in all columns fix sizes with .Width, but no horizontal scrolling is showed. Have you a sample ?
at 07 Jul 2017
Meccanica Rossi
you can set the width of the grid like: `@Html.Awe().Grid("g1").Width(300)` or put it inside a div with `style='width:300px;'`, most of the time there's no need to set width on the columns
at 07 Jul 2017
Omu
I just using awesome mvc v4, and not run. In version v5 is ok How can I do ?
at 07 Jul 2017
Meccanica Rossi
try `<div style='width:300px'>@html.Grid... </div>`
at 07 Jul 2017
Omu
no not run, the grid get full of width, and cols that exceed are not showed
at 07 Jul 2017
Meccanica Rossi
try the latest version than
at 07 Jul 2017
Omu
PS: my project use 4.5.2 framework This error occour : Severity Code Description Project File Line Suppression State Error CS1705 Assembly 'Omu.AwesomeMvc' with identity 'Omu.AwesomeMvc, Version=5.0.2.0, Culture=neutral, PublicKeyToken=9c6fbba722ea1caf' uses 'System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at 07 Jul 2017
Meccanica Rossi
I'm trying to convert the project to MVC 5, give me errors on allAjaxDropdown controller, SelectableItem seem not compatible with awesome mvc v5
at 07 Jul 2017
Meccanica Rossi
http://aspnetawesome.com/learn/release/Version5#Migrating-from-previous-versions
at 07 Jul 2017
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK