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. oracle SQL多表查询

    SQL多表查询 1.集合理论 1.1 什么是集合 具有某种特定性质的事物的总体. 集合的特性:无序性.互异性.确定性. 一个集合可以小到从一个表中取出一行中的一列.              1 ro ...

  2. JSTL的使用

    使用JSTL前的准备 想要使用JSTL,首先需要给工程导入JSTL的包(JSTL.jar和standard.jar). JSTL标签库 在JSTL中分为以下五个标签 核心标签 格式化标签 SQL标签 ...

  3. jvm(一)类加载器

    1.jvm的生命周期结束的几种情况 a.执行了System.exit()方法 b.程序正常执行结束 c.程序在执行过程中遇到了异常或错误而异常终止 d.操作系统出现错误 2.类加载过程 加载:查找并加 ...

  4. ---- 关于Android蓝牙搜索到设备的图标显示和设备过滤

    根据: https://www.douban.com/note/637446089/http://bbs.16rd.com/blog-23795-3446.html 以下摘自原文: (Android主 ...

  5. visual studio开启多核编译方法《转》

    原文:https://blog.csdn.net/acaiwlj/article/details/50240625 visual studio在编译时可以启动多核并行编译,以减少编译所需时间.话不多说 ...

  6. Python学习日记 --day3

    1.数据类型整体分析.    int :1,2,3213,用于计算 bool:True False 用于判断 str:‘qweqweqe’ .‘我爱你中国’ .‘1234位朋友’ 储存少量的数据,进行 ...

  7. 【转】BFG Repo-Cleaner: Removes large or troublesome blobs like git-filter-branch does, but faster.

    https://rtyley.github.io/bfg-repo-cleaner/ an alternative to git-filter-branch The BFG is a simpler, ...

  8. 如何用MATLAB读stl并显示点云文件

    function [VertexData,FVCD,isBinary]=stl2matlab(stlfile) % STL2MATLAB reads STL-file, ASCII or binary ...

  9. 微信小程序:request合法域名检验出错,https://apis.map.qq.com 不在以下 request 合法域名列表中

    设置域名 登录微信小程序后台, 设置→开发设置→服务器设置 必须设置域名,微信小程序才能进行网络通讯,不然会报错 如果没有设置合法域名,在开发阶段是可以不设置合法域名的 详情 -项目设置 好了,完美解 ...

  10. react rem

    1 :安装 postcss-px2rem 2 在webpack.config.js 中添加  引入 const px2rem = require('postcss-px2rem');   找到: lo ...