MVCGrid.Net icon indicating copy to clipboard operation
MVCGrid.Net copied to clipboard

Column width setting

Open nonesak opened this issue 9 years ago • 9 comments

Hello, I would like to set column width in the grid. But I think, it is not possible. Oh no!!!

nonesak avatar Feb 17 '16 17:02 nonesak

Currently there is no setting for width. I should be able to add this pretty easily.

joeharrison714 avatar Apr 07 '16 20:04 joeharrison714

Did you ever add the capability to set column width? Thanks in advance.

shaistasohail avatar Sep 26 '16 20:09 shaistasohail

I would really like to set column width.

Also any way to display an image in a cell?

PorkiePie avatar Oct 27 '16 23:10 PorkiePie

This is the only thing stopping me from using this grid. Did you ever add this feature? It is a fairly critical feature to leave out. Thanks

jimtym avatar Jan 08 '17 11:01 jimtym

After I got no reply on this in October, I bit the bullet and learned WebGrid, which is basically the default Grid app for MVC. I hoped to use MVCGrid to speed up dev but although it works in the examples given was difficult to customise it to how I wanted, e.g Column Width etc. So I suggest you use WebGrid. Heaps of examples to work from, and I could find solutions to all my requirements, which in some instances were weird. You can set the column widths, heights, borders, margins etc at will.

PorkiePie avatar Jan 08 '17 21:01 PorkiePie

@PorkiePie That sounds great. I'm assuming it isn't all that much brain damage to get paging/re-arranging/exporting/etc with WebGrid?

RichieRunner avatar Jan 09 '17 04:01 RichieRunner

Paging - I used PageList but they all work the same way so any paging package should be good. Not sure about exporting. The two big benefits of using WebGrid are that someone else will have done it and posted the solution on stackoverflow, and also it uses the basic MVC so all the Bootstrap design features (and paging!) carry through as expected, or can simply be modified in the header with styles.

This is the grid I developed - not sure how it will come out: image

PorkiePie avatar Jan 09 '17 07:01 PorkiePie

table column width would be very useful.

bdaut avatar May 12 '17 14:05 bdaut

@joeharrison714 Hi Joe, Can you show me how to add a setting or config to set a specific column width? I really need it

tqduy avatar Oct 20 '17 07:10 tqduy