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. linux 文件描述符

    文件描述符是什么?和文件句柄有啥区别?文件描述符是linux/unix操作系统中特有的概念.相当于windows系统中的文件句柄.一个意思不同叫法.Linux系统中, 每当进程打开一个文件时,系统就为 ...

  2. (14/24) css进阶:(入门)去除冗余的css

    在平时的项目开发中,我们会引入一些框架,比如:Bootstrap,但是在项目中通常我们只使用它的一小部分,还有部分是冗余的.更有甚有时候需求更改,带来DOM结构的更改,这时候我们可能无暇关注CSS样式 ...

  3. PCIe传输速率和可用带宽(吞吐量)计算

      版权声明:本文为博主原创文章,若要转载请保留原文链接. https://blog.csdn.net/s_sunnyy/article/details/79027379 参考:https://bai ...

  4. Python 的赋值坑 , a=b=c=1???

    原文地址:https://www.v2ex.com/amp/t/443384 Python 的赋值坑 , a=b=c=1??? 今天回答了一个主题, 一不小心进入了一个坑, 耗费了好多时间终于弄懂了我 ...

  5. idea搭建ssm框架

    1.file-->new-->project-->maven.... 2.建立后的目录: 3.pom.xml依赖建立: <?xml version="1.0" ...

  6. thymeleaf标签必须由匹配的结束标记终止

    问题描述 springboot使用Thymeleaf标签时会报元素类型必须由匹配的结果标记终止. 如下所示 如果我们一个个的给这些元素后面加上终止标记也是件很麻烦的事~~~~ 解决办法 方法一: 在p ...

  7. Chen qiaoqiao Studio

    Welcome here! If you need any help, please contact us. Contact info Email: lovey_kids@163.com

  8. 《DOM Scripting》学习笔记-——第九章 CSS-DOM

    本章内容: 一.style属性 二.如何检索样式信息 三.如何改变样式 属性: 包含位置信息:parentNode , nextSibling , previousSibling , childNod ...

  9. fair scheduler配置

    <property>    <name>yarn.resourcemanager.scheduler.class</name>    <value>or ...

  10. django的内置分页

    本节内容 自定义一个简单的内置分页 Django内置分页 Django内置分页扩展(继承) 自定义内置组件 自定义一个简单的内置分页 先用django自己自定制一个简单的内置分页,大概掌握内置分页的底 ...