摘要: grid在整个项目中是比较重要的一块,所以把它化简了看下主体 Ext.onReady(function () { //myData的数据 var myData = [ ['3m Co', 71.72, 0.02, 0.03, '9/1 12:00am'], ['Alcoa Inc', 29.01, 0.42, 1.47, '9/1 12:00am'], ['Altria Group Inc', 83.81, 0.28, 0.34, '9/1 12:00am'], ['America... 阅读全文
posted @ 2012-08-20 14:29 Ro_s__ 阅读(229) 评论(0) 推荐(0) 编辑
摘要: combobox在整个页面中也是非常重要的一个控件,接下来就好好说一下这个控件是怎么来运用的:1、运用json来取得数据Ext.onReady(function () { var combo = new Ext.form.ComboBox({ store:<%=ServerData %>, //json applyTo:"combo" //combobox的ID }); }); 并且在后台的cs代码中添加publicstr... 阅读全文
posted @ 2012-08-20 14:07 Ro_s__ 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 看extjs到现在也有2周左右了,一直不是很有头绪,demo和实例都感觉直接看或者根据它码出来不是很有条理的样子。所以今天下定决心,做一个布局方面的笔记。主要是精简了下extjs的代码,把事件和属性全部都去除了,只留下最基本的布局框架。以后需要什么直接在相应的地方添加就好了。以下是viewport中border布局的代码//Ext.onReady是extjs的代码读入点,一个页面可以有多个Ext.onReady,根据先后顺序读取 Ext.onReady(function () { var viewport = new Ext.Viewport({//声明一个... 阅读全文
posted @ 2012-08-16 16:32 Ro_s__ 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: 1、下载extjs的包包中一般包括adapter、docs、pkgs、resources、src、test、welcome、examples等文件,其中有一些实例可以观看。2、进入网页进行配置: a、把extjs包放入解决方案内。 b、添加支持代码//extjs的CSS样式表,没有的话边框之类的就不显示了哦<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />//获得当前ext的皮肤设置,没有的话就是默认蓝色<l 阅读全文
posted @ 2012-08-08 12:03 Ro_s__ 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 1、<div>标签的固定长度并且居中的方法<style type="text/css"> #divid //div标签的id { margin:0px auto; width:900px //div标签的宽度} </style>2、<form>标签的固定长度<style type="text/css"> #form1 { margin:0px auto; widt... 阅读全文
posted @ 2012-08-07 17:35 Ro_s__ 阅读(554) 评论(0) 推荐(0) 编辑
摘要: ext:grid的<ext:WindowField />先来解读一下整个域的属性<ext:WindowField ColumnID="WindowField1" WindowID="Window1" //弹出的window的idHeaderText="修改" Text="修改2" DataWindowTitleField="Num" //看到windowtitle,你懂得 window的标题栏文字DataWindowTitleFormatString="修改内容 - 阅读全文
posted @ 2012-08-06 14:34 Ro_s__ 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 昨天在学习的过程中,偶然间改了下数据表,然后就出现了一个问题:用dataset方式绑定的数据在ext:grid中能正确显示,然而直接查询的则是只能显示最初没有改动过的数据。具体如下图:1、dataset:DataSet ds = new Select().From(Guardianf.Schema).ExecuteDataSet();Grid1.DataSource = ds;Grid1.DataBind(); 2、查询方式:SqlQuery q = new Select().From(Guardianf.Schema);GuardianfCollection test = q.Execute 阅读全文
posted @ 2012-08-01 10:09 Ro_s__ 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1、数据绑定 a、dataset方式:DataSet ds = new Select().From(Guardianf.Schema).ExecuteDataSet();Grid1.DataSource = ds;Grid1.DataBind(); b、直接运用:SqlQuery q = new Select().From<Guardianf>(); GuardianfCollection all1 = q.ExecuteAsCollection<GuardianfCollection>(); Grid1.DataSource = all1; Gri... 阅读全文
posted @ 2012-07-31 14:55 Ro_s__ 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 最近公司的项目需要用SubSonic来做。所以作为菜鸟的我又要开始SubSonic的学习之旅了。1、首先是webconfig的配置: a、在<configuration>\<configSections>中添加信息<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic"/> b、在<configuration>中添加connectionStringsView Code 1 <connectionStrings&g 阅读全文
posted @ 2012-07-30 14:02 Ro_s__ 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 昨天头儿让做一个手风琴+树节点的目录整个结构没问题。就是有些属性拿捏得不是很到位导致部分页面功能无法实现,在这里做一个总结。1、基本结构:View Code 1 <ext:RegionPanel runat="server" ID="RegionPanel1" BodyPadding="5px"> 2 <Regions> 3 <ext:Region runat="server" Split="true" Layout="fit" Position 阅读全文
posted @ 2012-07-26 10:18 Ro_s__ 阅读(1092) 评论(0) 推荐(0) 编辑