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. eclipse安装中文语言包

    打开eclipse官网 https://www.eclipse.org/ 选择Projects 搜索框输入:Babel 点击搜索 选择Downloads 根据eclipse启动图画里的版本选择要下载的 ...

  2. loadrunner 上传下载

    转http://blog.163.com/yings_9371/blog/static/66196922010711115545137/ (1)LoadRunner上传文件 web_submit_da ...

  3. Mysql分表:Merge

    merge是Mysql最简单的一种分表,Mysql自带的一个分表功能,Merge表并不保存数据,Merge表和分表是对应映射关系.demo: 创建分表:CREATE TABLE `user1` ( ` ...

  4. JAVA设计方法思考之如何实现一个方法执行完毕后自动执行下一个方法

    今天编程时,突然想起来在一些异步操作或Android原生库的时候,需要我们实现一些方法, 这些方法只需要我们具体实现,然后他们会在适当的时候,自动被调用! 例如AsyncTask,执行玩doInBac ...

  5. python中线程2

    cpython中的GIL和pool GIL锁(全局解释器锁) 1.what? GIL是全局解释器锁,和普通锁加在数据上不同的是:GIL加在加在解释器上,是为了防止多个线程在同一时间执行python字节 ...

  6. linux tcpdump抓包

    tcpdump 默认抓取第一个网卡的所有数据包 tcpdump -i eth0 指定网卡 tcpdump host 10.10.10.10 指定主机名或ip地址 tcpdump host 10.10. ...

  7. DOM对象与jquery对象相互转换

  8. cv2.error: openCV报错

    运行openCV程序,出现了.cv2.error: OpenCV(4.1.0) D:\Build\OpenCV\opencv-4.1.0\modules\imgproc\src\color.cpp:1 ...

  9. BackgroundWorker 组件 -- 进度条

    代码: BackgroundWorker bw = new BackgroundWorker(); public MainWindow() { InitializeComponent(); bw.Wo ...

  10. Dubbo 的配置主要分为三大类

    服务发现.服务治理和性能调优:这三类配置不是独立存在的,而是贯穿在所有配置项中的,比如dubbo:service 标签中的interface 是服务发现类, timeout是性能调优类, mock 是 ...