是否可以修改ASP.NET MVC WebGrid,使其看起来不像常规网格表?

时间:2012-08-27 00:31:53

标签: asp.net-mvc webgrid

我需要渲染一个看起来不像常规网格表的表,其中对于一个条目,它是典型表中的一行,第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或其他开源网格是否允许这样做?

提前多多感谢。

1 个答案:

答案 0 :(得分:0)

如果没有例子,很难说出你在谈论什么,但Masonry怎么办?