jQuery('#jq2').jqGrid(
{
url: 'http://localhost:8080/api/RskPriceFactorTest/senario/0/detail',
editurl: 'http://localhost:8080/api/RskPriceFactorTest/update/scenario/detail',
exportUrl: '/RSK/RskStressTestCaseManage2.html&jqGridID=jq2',
datatype: function (pdata) { $.ajax({
type: "GET",
dataType:"json",
url: "http://localhost:8080/api/RskPriceFactorTest/senario/"+pdata.txt_RiskStressTestCaseId_+"/detail",
contentType: "application/json",
data:pdata,
success: function (data) {
var thegrid = jQuery("#jq2")[]
thegrid.addJSONData(data);
}
})
alert("可香槟"+ JSON.stringify(pdata))
},
page: ,
colNames: [
"编辑",
"风险价格因子",
"运算符",
"绝对值或百分比",
"币种",
"冲击值",
"时间长度",
"限额值",
"生效日期",
"终止日期",
"Id"
],
colModel: [
{
"frozen": true,
"superFilterColumn": "act",
"summaryTpl": "{0}",
"name": "act",
"supperControlType": "input",
"formatter": changeOp,
"align": "center",
"index": "act",
"searchoptions": { }
},
{
"frozen": true,
"summaryTpl": "{0}",
"name": "indexPriceFactorName",
"superFilterColumn": "indexPriceFactorName",
"searchoptions": { },
"supperControlType": "input",
"index": "indexPriceFactorName"
},
{
"summaryTpl": "{0}",
"editable": true,
"name": "shockModeName",
"superFilterColumn": "shockModeName",
"searchoptions": { },
"supperControlType": "input",
"edittype": "select",
"editoptions": {
"value": "12801:加上;112803:减去;112802:乘上"
},
"index": "shockModeName"
},
{
"summaryTpl": "{0}",
"editable": true,
"name": "shockValueTypeName",
"superFilterColumn": "shockValueTypeName",
"searchoptions": { },
"supperControlType": "input",
"edittype": "select",
"editoptions": {
"value": "137001:绝对值;137002:百分比"
},
"index": "shockValueTypeName"
},
{
"summaryTpl": "{0}",
"editable": true,
"name": "valueCurrencyName",
"superFilterColumn": "valueCurrencyName",
"searchoptions": { },
"supperControlType": "input",
"edittype": "select",
"editoptions": {
"value": "EUR:欧元;CAD:加币;CNY:人民币;USD:美元;JPY:日圆;HKD:港币"
},
"index": "valueCurrencyName"
},
{
"summaryTpl": "{0}",
"editable": true,
"name": "shockValue",
"superFilterColumn": "shockValue",
"searchoptions": { },
"supperControlType": "input",
"index": "shockValue"
},
{
"summaryTpl": "{0}",
"editable": true,
"name": "timeHorizon",
"superFilterColumn": "timeHorizon",
"searchoptions": { },
"supperControlType": "input",
"index": "timeHorizon"
},
{
"summaryTpl": "{0}",
"editable": true,
"name": "stressTestLimitValue",
"superFilterColumn": "stressTestLimitValue",
"searchoptions": { },
"supperControlType": "input",
"index": "stressTestLimitValue"
},
{
"summaryTpl": "{0}",
"classes": "aa",
"searchoptions": { },
"name": "startDate",
"superFilterColumn": "startDate",
"formatter": getDate,
"supperControlType": "input",
"index": "startDate",
"editable": true
},
{
"summaryTpl": "{0}",
"classes": "aa",
"searchoptions": { },
"name": "endDate",
"superFilterColumn": "endDate",
"formatter": getDate,
"supperControlType": "input",
"index": "endDate",
"editable": true
},
{
"summaryTpl": "{0}",
"superFilterColumn": "id",
"name": "id",
"supperControlType": "input",
"searchoptions": {
"searchhidden": true
},
"hidden": true,
"key": true,
"index": "id"
}
],
viewrecords: true,
scrollrows: false,
postData: $('body').GetSearchPostData(),
styleUI: 'Bootstrap',
postBackUrl: "__doPostBack('jq2','jqGridParams')",
editDialogOptions: {
"recreateForm": true,
errorTextFormat: function(data){
return'Error: '+data.responseText
}
},
addDialogOptions: {
"recreateForm": true,
errorTextFormat: function(data){
return'Error: '+data.responseText
}
},
delDialogOptions: {
errorTextFormat: function(data){
return'Error: '+data.responseText
}
},
searchDialogOptions: { },
viewRowDetailsDialogOptions: { },
jsonReader: {
id: "Id"
},
rowNum: ,
rowList: [
,
, ],
sortorder: 'asc',
hidegrid: false,
height: '',
autowidth: true,
headertitles: true,
rownumbers: true,
shrinkToFit: false,
pager: jQuery('#jq2_pager'),
viewsortcols: [
false,
'vertical',
true
],
loadComplete: gridComplete1,
ondblClickRow: jq2DoubleClick,
loadError: jqGrid_aspnet_loadErrorHandler
} );

jqgrid content-type datatype的更多相关文章

  1. ajax使用向Spring MVC发送JSON数据出现 org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported错误

    ajax使用向Spring MVC发送JSON数据时,后端Controller在接受JSON数据时报org.springframework.web.HttpMediaTypeNotSupportedE ...

  2. org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported或其他Content type不支持处理

    很久没从头到尾搭框架,今天搭的过程中,springmvc controller方法入参用@RequestBody自动绑定参数时一直提示各种 not supported 排查问题有两个解决路径: 1)使 ...

  3. Jsoup问题---获取http协议请求失败 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml.

    Jsoup问题---获取http协议请求失败 1.问题:用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不 ...

  4. Jsoup获取部分页面数据失败 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml.

    用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不符合要求. 请求代码如下: private static ...

  5. SharePoint自动化系列——Add content type to list.

    转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 将创建好的content type(若是跨web application需要事先publish c ...

  6. SharePoint自动化系列——Content Type相关timer jobs一键执行

    转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 背景: 在SharePoint Central Administration->Monito ...

  7. 转载 SharePoint【Site Definition 系列】– 创建Content Type

    转载原地址:  http://www.cnblogs.com/wsdj-ITtech/archive/2012/09/01/2470274.html Sharepoint本身就是一个丰富的大容器,里面 ...

  8. the request doesn't contain a multipart/form-data or multipart/form-data stream, content type header

    the request doesn't contain a multipart/form-data or multipart/form-data stream, content type header ...

  9. Springs Element 'beans' cannot have character [children], because the type's content type is element-only

    Springs Element 'beans' cannot have character [children], because the type's content type is element ...

  10. springboot 报错 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported

    开始 controller 方法写的是 @RequestMapping( value = "/add", method = RequestMethod.POST ) public ...

随机推荐

  1. postman引用外部文件中的变量和数据

    接口参数显示: 点击collections下文件夹test0424右边的箭头,点击run按钮: DataFile导入txt文件: 预览文件数据: 运行,成功:

  2. Linux下查看tomcat版本

    进入到tomcat的bin目录下,再执行./version.sh tomcat版本:7.0

  3. 稀疏矩阵 part 1

    ▶ 图片参考[http://www.bu.edu/pasi/files/2011/01/NathanBell1-10-1000.pdf] ▶ 各种系数矩阵的数据结构 ● MAT,原始矩阵数据 type ...

  4. Linux 系统状态检测命令

    介绍快速查看Linux系统运行状态的能力(网络网卡.系统内核.系统负载.内存使用情况.启用终端数量.历史登录记录.命令执行记录.救援诊断)等命令使用方法 1.ifconfig  用于获取网卡配置和网络 ...

  5. python打包exe文件

    https://blog.csdn.net/lqzdreamer/article/details/77917493 测试下载pyinstall,在安装运行就可以了

  6. Bootstrap字体无法显示

    下载的font文件没有放进你的项目文件里.

  7. 查询Oracle版本

    服务器端 Oracle: 1)select* from v$version; 2)select * from product_component_version; 3)set serveroutput ...

  8. RabbitMQ安装及使用

    下载 由于RabbitMQ是基于Erlang语言开发,所以在安装RabbitMQ之前,需要先安装Erlang.好在RabbitMQ官网已经为我们提供了Erlang的安装包 Erlang下载地址:htt ...

  9. 并发系列2:Java并发的基石,volatile关键字、synchronized关键字、乐观锁CAS操作

    由并发大师Doug Lea操刀的并发包Concurrent是并发编程的重要包,而并发包的基石又是volatile关键字.synchronized关键字.乐观锁CAS操作这些基础.因此了解他们的原理对我 ...

  10. xLearn

    https://blog.csdn.net/songbinxu/article/details/79662665