JQGrid列自定义..在运行时添加列 [英] JQGrid Column Customization ..Add Column at Run time
问题描述
J Query的新手,正在尝试 http://www.trirand的一些示例.com/blog/jqgrid/jqgrid.html 在这里,我看到列名是用JS编写的,并显示在Grid中.
Am new to J Query and am trying some samples in http://www.trirand.com/blog/jqgrid/jqgrid.html Where i see column names are written in JS which are displayed in Grid.
我有这个要求要在JQGrid上做,以显示他们每次搜索的列.
I have this requirement to do on JQGrid to show the Column they search every time.
示例:我有一组标准列要显示在网格中,例如学生姓名,地址,电话号码.
Example: I have standard set of columns to be displayed in the Grid Like student name, Address,Phone number.
如果用户按学生编号搜索,我需要在结果中添加学生编号作为列.
Suppose if user search by Student id i need to add Student id as column to the result.
我应该像
"student name, Address,Phone number,StudentID"
如果他们按总数搜索
我应该像
"student name, Address,Phone number,Total"
为简化起见,我需要在用户单击搜索后向JQGrid添加一列.
To simplify i need to add one column to JQGrid after user clicks on search.
我可以在JQGrid中执行此操作吗?我该如何实现呢?
Can i do this in JQGrid. How can i implement this ?