English 中文(简体)
How to use MVC Contrib Grid to make better table?
原标题:
  • 时间:2010-01-06 18:01:05
  •  标签:
  • mvccontrib

There are actually 2 question i want to cover in this topic.

1) Is there anyway to put table footer into a MVCContrib Grid? (tf)

2) Im writing a small code to display result image into a grid:

-----------------------------------
| I || I || I || I || I || I || I |
-----------------------------------
| I || I || I || I || I || I || I |
-----------------------------------
| I || I || I || I || I || I || I |
-----------------------------------
| I || I || I || I || I || I || I |
-----------------------------------

I represent Image, this will make as a table to maintain equal width.. But is there anyway of doing this with MVCCOntrib particularly or Asp.net MVC View?

Thank you

最佳回答

For item #1:

Out of the box there’s no built in way to do this, but there are some extensibility points you can hook into if you want to add this functionality.

If you create a custom GridRenderer that inherits from HtmlTableGridRender then you could override the RenderGridEnd method and generate the appropriate HTML in there. - Jeremey Skinner

From comments in http://www.jeremyskinner.co.uk/2009/03/01/mvccontrib-grid-part-5-the-action-syntax/

On #2:

As long as you wrap your images in a way with styling to enforce the same size for each image (if the images are of different sizes to begin with) this should be doable.

问题回答

暂无回答




相关问题
Edit links in GridModel (MVCContrib)

MvcContrib GridModel : Is it possible to do ActionSyntax in a GridModel I ve read this article and it s quite useful but I can t apply this. I don t know if in the newest MVCContrib, they removed the "...

how to apply css class to mvccontrib grid

I am using mvccontrib grid in asp.net mvc(C#) application. How can i apply css class to the grid thats created for the mvccontrib grid Attributes? I am looking to construct like: <table border="...

How to use MVC Contrib Grid to make better table?

There are actually 2 question i want to cover in this topic. 1) Is there anyway to put table footer into a MVCContrib Grid? (tf) 2) Im writing a small code to display result image into a grid: -----...

Hierarchical Grid with MVCContrib

I am trying to come up with the best solution for creating a hierarchical grid in my ASP.NET MVC project. First, I looked at jqGrid, and found it s "treeGrid" option which is exactly what I m looking ...

Cannot use fluent html lambda expressions in Spark view

I m attempting to use fluent html and the spark view engine in my asp.net mvc application. I ve assinged the proper base class, added the assemblies, and when i do this.TextBox("MyProperty") it works ...

热门标签