开发者

resizable gridview columns

i have found this Resizable Gridview columns using javascript and happy to implement this http://www.ita.es/jquery/jquery.grid.columnsiz开发者_如何学Going.htm but it is working on any table(

<table >
        <tbody>
            <tr class="first">
                <td width="100">

                </td>
                <td width="200">

                </td>
                <td>

                </td>
            </tr>
            <tr>
                <td>

                </td>
                <td>

                </td>
                <td>

                </td>
            </tr></tbody></table>

) but creating problem on gridview render html table(

   <table >
                <tbody><tr>
                    <th ></th><th></th>
                </tr><tr>
                    <td ></td><td>
                        </td><td>
                </tr>
            </tbody></table>

)


If you mean how to have that plugin work only on certain tables instead of all tables, change this line:

$("table").columnSizing()

To this instead:

$(".columnresize").columnSizing()

Then to any table you want it applied to, add class columnresize like this:

<table class="columnresize">
...
</table>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜