摘要: 当MVC下.EXTJS提交表单返回值的时候.需要返回JSON格式数据,这里重写了ExecuteResult方法对数据进行了JSON转换.public class FormActionResult : ActionResult { public bool Success { get; set; } public int ErrorCode { get; set; } public string Message { get; set; } public string ContentType { get; set; } public override void ExecuteResult(Contr 阅读全文
posted @ 2011-11-08 23:48 orient22 阅读(728) 评论(0) 推荐(0) 编辑
摘要: COMBOX的基本用法可能比较入门级一些.为了方便学习的朋友.与方便自己以后用拷贝方便...顺便记录下来了.本地Store: { xtype: 'combobox', fieldLabel: '展示频道', store : new Ext.data.SimpleStore({ fields : [ 'GroupId', 'GroupName' ], data : [ [ 64, '【首页】' ], [ 128, '【玄幻奇幻】 ' ], [ 256, '【仙侠武侠】' ] ]}), 阅读全文
posted @ 2011-11-08 23:29 orient22 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: 在网上看了很多例子.来实现grid动态加载数据.可根据值进行来进行判断是否选中,发现都比较麻烦.有的是在store的load()里面进行判断等.代码较多.最关键在EXT4.0以后版本中.测试结果不理想...所以换了一种方法.发现比较简便.代码如下:selModel: Ext.create('Ext.selection.CheckboxModel', { renderer: function(value, metaData, record, rowIndex, colIndex, store, view) { if(record.data.CheckUp == 1) {retur 阅读全文
posted @ 2011-11-08 23:09 orient22 阅读(944) 评论(0) 推荐(0) 编辑