在Extjs中动态增加控件
来源:互联网 发布:2016方舟生存进化优化 编辑:程序博客网 时间:2024/06/02 23:05
Ext.onReady(function () { Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; var autoloadcontrol =new Ext.form.FieldSet({ layout: "column", title: "属性表单", })var addForm = new Ext.FormPanel({ title: "<div align='center'>产品属性管理</div>", id: "addForm", name: "addForm", renderTo: Ext.getBody(), autoHeight: true, autoWidth: true, labelWidth: 80, frame: true, items: autoloadcontrol, bbar: [{ xtype: "button",text:"addform", listeners: { "click": function () { Ext.Ajax.request({ url: "/PropertyManage/ProductPropertyInfo.aspx", params: { op: "test" }, success: function (response) { //后台得到字符串 autoloadcontrol.add(eval(response.responseText)) autoloadcontrol.doLayout(); //用来刷新FormPanel }, }) } } }] }); });
protected void Page_Load(object sender, EventArgs e){ switch (Request["op"]) { case "test": Response.Write("new Ext.form.TextField({filedLabel:'标题',emptyText:'请输入内容',allowBlank:false,maxLength:50})"); Response.End(); break; }}
0 0
- 在Extjs中动态增加控件
- extjs panel中动态增加items
- Silverlight 在Grid中动态增加控件并排版
- Qt入门:在QMainWindow中动态增加控件
- Activity 中动态增加控件
- Extjs中如何在一行textfield后面增加文字提示
- 在开发ActiveX控件中增加事件
- 在miniGUI中增加自定义控件
- 如何在UIToolBar中增加label控件
- ASP.NET (C#)动态在CS代码中给页面增加用户控件并给用户控件的属性赋值
- android 动态增加控件
- 动态在窗体上增加32个Lable控件
- ASP.NET页面中动态增加的控件、添加事件
- ASP.NET页面中动态增加的控件、添加事件
- 在Html页面中获取Extjs Tree控件
- jquery在html中动态增加数据到table中
- 在Extjs模块化程序中动态加载js文件
- 在ExtJs的容器中显示图片,并动态更新
- 设计模式_中介者模式
- Java Web乱码分析及解决方案(一)——GET请求乱码
- 【sqlserver】如何添加外键
- Spring bean加载顺序 depends-on
- awk的内建变量
- 在Extjs中动态增加控件
- NGUI UIPanel在softClip下不起作用的问题
- android 常见分辨率(mdpi、hdpi 、xhdpi、xxhdpi )及屏幕适配注意事项
- Android SwipeRefreshLayout:谷歌官方SDK包中的下拉刷新
- Android源码及SDK国内镜像下载
- Codeforces 558D Guess Your Way Out! II 排序、区间求交、并
- 《你最美》换发型应用项目源码
- 一些LVS实验配置、工具和方案
- linux mint安装搜狗输入法