【问题标题】:Is it possible to modify ASP.NET MVC WebGrid so that it doesn't look like a regular grid table?是否可以修改 ASP.NET MVC WebGrid 使其看起来不像常规网格表?
【发布时间】:2012-08-27 08:58:21
【问题描述】:

我需要渲染一个看起来不像常规网格表的表格,其中一个条目(通常是典型表格中的一行)可以将第 1 列和第 2 列的值放在第 1 行第 3 列中, 4 和 5 值将在第 2 行,依此类推:

<table id="display_searchresults_student">
                        <tr>
                            <th rowspan="4"><img src="../../Images/picture_temp.jpg" id="display_searchresults_studentpicture"/></th>
                            <td id="display_searchresults_studentname"><a href="">**Name Column**</a>
                            <img src="../../Images/picture_temp.jpg" height="25px" width="25px"/>
                            </td>
                            <td align="right" width="100px">Rating Column</td>
                        </tr>
                        <tr>
                            <td id="display_searchresults_studentlocation">City Column, State Column | University Column</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td id="display_searchresults_studentinfo">Department Column | School Standing Column Graduation Date Column | GPA Column</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td id="display_searchresults_studentdesc" colspan="2">Comments Column<a href="">...</a></td>
                        </tr>
                    </table>

此表将有多个条目。我之所以想到使用 WebGrid,是因为我需要排序、过滤和分页功能。我现在 Telerik 允许构建这样的表格。但是,我没有看到如何通过 WebGrid 做到这一点。有没有办法在呈现之前更改 Webgrid 的 HTML 而不会破坏排序、过滤和分页功能? jqGrid 或其他开源网格是否允许这样做?

非常感谢。

【问题讨论】:

    标签: asp.net-mvc webgrid


    【解决方案1】:

    如果没有例子,你很难说出你在说什么,但是Masonry呢?

    【讨论】:

    • 请看上面的说明。
    • 你能画个小图吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-10
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多