文章分类 -  EXT JS

摘要:View Code Ext.onReady(function(){ Ext.QuickTips.init(); //顶部工具栏 var tbar=[{ id:'btnAdd', text:'新增', tooltip:'新增', iconCls:'icon-add', handler: showaddWindows }, '-', { text:'修改', handler: showed... 阅读全文
posted @ 2011-09-20 17:01 net 学习网 阅读(143) 评论(0) 推荐(0)
摘要:Ext.onReady(showSampleInfo) function showSampleInfo() { var jReader = new Ext.data.JsonReader({ root : 'data' }, [{ name : 'hca_art_title', mapping : 'hca_art_title', type : 'string' ... 阅读全文
posted @ 2011-09-20 16:14 net 学习网 阅读(284) 评论(0) 推荐(0)
摘要:var newwin;function showAddPanel(){ newwin = new Ext.Window({ xtype: 'window', title: "添加数据", modal: 'true', width:620, height: 435, closeAction:'hide', items: addForm, ... 阅读全文
posted @ 2011-09-15 15:26 net 学习网 阅读(680) 评论(0) 推荐(0)
摘要:一、属性 plain:布尔类型,true表示强制与背景色保持协调,默认值为false。 resizable:布尔类型,用户是否可以调整窗体大小,默认值为true表示可以调整大小。 maxinizable:布尔类型,true表示显示最大化按钮,默认值为false。 maximized:布尔类型,true表示显示窗体时将窗体最大化,默认值为false。 closable:布尔类型,true表示显示关闭按钮,默认值为true。 bodyStyle:与边框的间距,如:bodyStyle:"padding:3px"。 buttonAlign:窗体中button的对齐方式(left、c 阅读全文
posted @ 2011-09-14 16:26 net 学习网 阅读(3243) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.SqlClient;using System.Text;public partial class admin_json_json_grid : System.Web.UI.Page { protected void Page_Load(obj... 阅读全文
posted @ 2011-09-14 15:43 net 学习网 阅读(586) 评论(1) 推荐(0)
摘要:<%@ WebHandler Language="C#" Class="Handler" %>using System;using System.Web;using System.Collections;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Text;public class Handler : IHttpHandler { public void ProcessRequest (HttpContext con 阅读全文
posted @ 2011-09-14 15:40 net 学习网 阅读(506) 评论(0) 推荐(0)
摘要:function fn(){ //顶部工具栏 var tbar=[{ id:'btnAdd', text:'新增', tooltip:'新增', iconCls:'ico_add', handler: showAddPanel }, '-', { text:'查询', // tooltip:'查询', iconCls:'ico_search' }, '-', { tex... 阅读全文
posted @ 2011-09-14 15:29 net 学习网 阅读(188) 评论(0) 推荐(0)
摘要:1 //为右键菜单添加事件监听器 2 grid.addListener('rowcontextmenu', rightClickFn); 3 var rightClick = new Ext.menu.Menu({ 4 id:'rightClickCont', 5 items: [ 6 { 7 id: 'rMenu1', 8 handler: showAddPanel, 9 iconCls:'ico_add',10 text: '添加数据', 11 ... 阅读全文
posted @ 2011-09-14 14:24 net 学习网 阅读(2960) 评论(0) 推荐(0)