在mvc中使用jquery显示和隐藏WebGrid列 [英] Show and Hide WebGrid Columns using jquery in mvc
本文介绍了在mvc中使用jquery显示和隐藏WebGrid列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI ..
我是MVC和Jquery的新手..
在我的要求中我点击了一个按钮按钮它应该在列表框中显示网格的所有列,选择要显示的列,然后单击显示按钮,然后仅在网格中输入这些列。
如何在MVC中使用Jquery ..
谢谢,
亲爱的。
HI..
I am new to MVC & Jquery..
In my requirement i had a button by click on that button it should shows all columns of the web grid in a listbox, be selecting those columns to show and click show button then it vl those columns only in the webgrid.
How it is possible in MVC with Jquery..
Thanks ,
Honey.
推荐答案
尝试这样的事情
Try something like this
@{
var grid = new WebGrid(Model);
@grid.GetHtml(columns: grid.Columns(grid.Column(null,null, format: @<input type="hidden" name="IDHidden" value="@item.IDHidden"/>),
grid.Column("Title", "Title")));
}
这篇关于在mvc中使用jquery显示和隐藏WebGrid列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文