jqgrid content-type datatype
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的更多相关文章
- 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 ...
- org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported或其他Content type不支持处理
很久没从头到尾搭框架,今天搭的过程中,springmvc controller方法入参用@RequestBody自动绑定参数时一直提示各种 not supported 排查问题有两个解决路径: 1)使 ...
- Jsoup问题---获取http协议请求失败 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml.
Jsoup问题---获取http协议请求失败 1.问题:用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不 ...
- Jsoup获取部分页面数据失败 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml.
用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不符合要求. 请求代码如下: private static ...
- SharePoint自动化系列——Add content type to list.
转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 将创建好的content type(若是跨web application需要事先publish c ...
- SharePoint自动化系列——Content Type相关timer jobs一键执行
转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 背景: 在SharePoint Central Administration->Monito ...
- 转载 SharePoint【Site Definition 系列】– 创建Content Type
转载原地址: http://www.cnblogs.com/wsdj-ITtech/archive/2012/09/01/2470274.html Sharepoint本身就是一个丰富的大容器,里面 ...
- 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 ...
- 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 ...
- springboot 报错 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
开始 controller 方法写的是 @RequestMapping( value = "/add", method = RequestMethod.POST ) public ...
随机推荐
- SQLServer 2008 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。
在用SQL Server 2008 在连接其他电脑的实例时,一直提示“已成功与服务器建立连接,但是在登录前的握手期间发生错误. (provider: SSL Provider, error: 0 - ...
- abp.net zero 运行报500.21,错误模块AspNetCoreModuleV2
关于这个运行时提示的问题,导致项目无法运行,之前我是遇到过的,也是查了很久最后解决了 但忘记记录了...岁数大了脑袋不好用了...这次依然找了各种方案,有很多都说由于net core 不是最新的,但我 ...
- 比较C#中几种常见的复制字节数组方法的效率
在日常编程过程中,我们可能经常需要Copy各种数组,一般来说有以下几种常见的方法:Array.Copy,IList<T>.Copy,BinaryReader.ReadBytes,Buffe ...
- Java数据类型(primitive)原始数据类型
1.小心别溢出来. 要确保变量能存下来所保存的值. 你无法用小杯子装大值.好吧,其实可以,但是会损失某些信息,也就是所说的溢位.当判断到所使用的容器不足以装载时,编译器会试着防止珍重情况发生.举例来说 ...
- Python-基础函数与常用模块考核
第二模块考核(2019/ 03/ 03) ### 第一模块内容1.请写出 “路飞学城alex” 分别用utf - 8和gbk编码所占的位数(口述) ➜ ~ python3 >>> b ...
- [原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(四) -- 安装crowd 3.1.2
[原创] debian 9.3 搭建Jira+Confluence+Bitbucket项目管理工具(四) -- 安装crowd 3.1.2 本来已经安装完毕, 并使用Jira集成的OAuth账户管理, ...
- cent os安装filebeat
先贴一下官方文档https://www.elastic.co/guide/en/beats/filebeat/6.6/filebeat-installation.html 我本次使用rpm的方式安装, ...
- html5下F11全屏化的几点注意
1.实现全屏化 var docElm = document.documentElement; //W3C if (docElm.requestFullscreen) { docElm.requestF ...
- python学习Day13 函数的嵌套定义、global、nonlocal关键字、闭包及闭包的运用场景、装饰器
复习 1.函数对象:函数名 => 存放的是函数的内存地址1)函数名 - 找到的是函数的内存地址2)函数名() - 调用函数 => 函数的返回值 eg:fn()() => fn的返回值 ...
- neo4j性能调优(转)
最近在公司实习做的就是优化neo4j图形数据库查询效率的事,公司提供的是一个在Linux上搭建且拥有几亿个节点的数据库.开始一段时间主要是熟悉该数据库的一些基本操作,直到上周才正式开始步入了优化数据库 ...