Ext3.4--TreeGridDemo
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CategoryPropertyInfo.aspx.cs" Inherits="WebUI.NewMall.PropertyManage.CategoryPropertyInfo" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- ext css includes -->
<link rel="stylesheet" type="text/css" href="../resources/Ext/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../resources/Ext/examples/ux/treegrid/treegrid.css" /> <!-- ext javascript includes -->
<script type="text/javascript" src="../resources/Ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../resources/Ext/ext-all.js"></script>
<link href="../resources/Ext/examples/ux/css/ColumnNodeUI.css" rel="stylesheet" />
<link href="../resources/Ext/examples/tree/column-tree.css" rel="stylesheet" />
<script src="../resources/Ext/examples/ux/ColumnNodeUI.js"></script>
<script type="text/javascript">
Ext.onReady(function () {
Ext.QuickTips.init();
var tree = new Ext.ux.tree.ColumnTree({
width: 500,
height: 300,
rootVisible: true,
autoScoll: true,
title: '种类属性列表',
renderTo: Ext.getBody(),
columns: [{
header: '任务',
width: 330,
dataIndex: 'task'
}, {
header: '持续时间',
width: 100,
dataIndex: 'duration'
}, {
header: '负责人',
width: 100,
dataIndex: 'user'
}],
loader: new Ext.tree.TreeLoader({
dataUrl: 'CategoryPropertyInfo.aspx?op=getData?id=1',
uiProviders: {
'col':Ext.ux.tree.ColumnNodeUI
}
}),
root:new Ext.tree.AsyncTreeNode({text:'Tasks'})
})
});
</script>
</head>
<body>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebUI.Mall; namespace WebUI.NewMall.PropertyManage
{
public partial class CategoryPropertyInfo : PageBaseMall
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request["op"] == "getData")
{
var str = @"[
{
task: '深入浅出Extjs',
duration: '12个月',
user: '',
uiProvider: 'col',
iconCls: 'task-folder',
children:[{
task: '第一章',
duration: '1个月',
user: 'Lingo',
uiProvider: 'col',
iconCls: 'task',
}, {
task: '第2章',
duration: '2个月',
user: 'Lio',
uiProvider: 'col',
iconCls: 'task',
}, {
task: '第3章',
duration: '11个月',
user: 'Lio',
uiProvider: 'col',
iconCls: 'task',
}]
}]";
Response.Write(str);
Response.End();
}
}
}
}
Ext3.4--TreeGridDemo的更多相关文章
- 87 resize2fs-增大或者收缩未加载的“ext2/ext3”文件系统的大小
resize2fs命令被用来增大或者收缩未加载的"ext2/ext3"文件系统的大小.如果文件系统是处于mount状态下,那么它只能做到扩容,前提条件是内核支持在线resize., ...
- 81 dumpe2fs-打印“ext2/ext3”文件系统的超级块和快组信息
dumpe2fs打印"ext2/ext3"文件系统的超级块和快组信息. 语法 dumpe2fs (选项) (参数) 选项 -b:打印文件系统中预留的块信息: -ob<超级块& ...
- Linux ext3 ext4 区别
Linux kernel 自 2.6.28 开始正式支持新的文件系统 Ext4. Ext4 是 Ext3 的改进版,修改了 Ext3 中部分重要的数据结构,而不仅仅像 Ext3 对 Ext2 那样,只 ...
- Ext3日记文件系统为什么文件系统还会损坏?
问题提出 在我们产品使用的多种文件系统中,ext3文件系统问题的一致性问题比较突出(这里的文件系统一致性问题特指文件系统元数据的一致性,下同).比如下面2例ext3文件系统损坏案例: ...
- Ext3文件系统mount选项和文件属性介绍
mount选项 设置方式 ext3 mount选项可以通过多个方式进行设置:1)内核编译时: 内核menuconfig通过CONFIG_EXT3_DEFAULTS_TO_ORDERED编译控制选项,来 ...
- Ext3文件系统及JDB介绍
Ext3介绍 对于ext3文件系统,磁盘空间划分一系列block groups,每个group有位图来跟踪inode和data块的分配和范围.其物理布局如下: Superblock:位于group内第 ...
- ext3是对ext2文件系统的一个扩展高性能日志文件系统
嵌入式开发者所做的最重要的决定之一就是部署哪种文件系统.有些文件系统性能比较高有些文件系统空间利用率比较高,还有一些文件系统设备故障或者意外断电后恢复数据比较方便. linux文件系统概念 分区 分区 ...
- Linux下误删除后的恢复操作(ext3/ext4)
Linux是作为一个多用户.多任务的操作系统,文件一旦被删除是难以恢复的.尽管删除命令只是在文件节点中作删除标记,并不真正清除文件内容,但是其他用户和一些有写盘动作的进程会很快覆盖这些数据.在日常工程 ...
- Ext FileSystem Family、Ext2、Ext3
catalog . 简介 . Ext2文件系统 . Ext3文件系统 . 小结 1. 简介 VFS虚拟文件系统接口和数据结构构成了一个框架,各个文件系统的实现都必须在框架内运转,但这并不要求每个文件系 ...
- 关于ext3,ext4,xfs和btrfs文件系统性能对比
关于ext3,ext4,xfs和btrfs文件系统性能对比 应为原文:http://www.ilsistemista.net/index.php/linux-a-unix/6-linux-filesy ...
随机推荐
- ES6新特性概览1
本文基于lukehoban/es6features ,同时参考了大量博客资料,具体见文末引用. ES6(ECMAScript 6)是即将到来的新版本JavaScript语言的标准,代号harmony( ...
- C#集合概述
C#集合概述 2016-11-29 集合 顺序排列 连顺存储 直接访问方式 访问时间 操作时间 备注 Dictionary 是 Key Key:O(1) O(1) 访问性能最快,不支持排序 Sorte ...
- 【转】Linux删除文件未释放空间问题处理
linux里的文件被删除后,空间没有被释放是因为在Linux系统中,通过rm或者文件管理器删除文件将会从文件系统的目录结构上解除链接(unlink).然而如果文件是被打开的(有一个进程正在使用),那么 ...
- LeetCode: Merge Intervals 解题报告
Merge IntervalsGiven a collection of intervals, merge all overlapping intervals. For example,Given [ ...
- LeetCode: Divide Two Integers 解题报告
Divide Two Integers Divide two integers without using multiplication, division and mod operator. SOL ...
- strcat
将两个char类型链接. char d[20]="GoldenGlobal"; char *s="View"; strcat(d,s); 结果放在d中 prin ...
- java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGCodec
今天迁移老项目到linux服务器,jdk8 ,tomcat8.5遇到这个问题. java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.J ...
- PostMessage与PostThreadMessage的差别
消息队列是属于线程的,Post消息就是把消息放到目标线程的消息队列中. 这两者的差别在于: PostMessage 通过指定目标窗体句柄来确定目标线程,通常情况下由窗体过程来处理消息: PostThr ...
- 章鱼哥出品—VB.NET DataGridView绑定数据源 "与货币管理器的位置关联的行不能设置为不可见" 问题的解决
DtaGridView绑定数据源后.假设想让数据条件显示的话,直接使用 My_Row.Visible = False就会出错.错误类型是 "与货币管理器的位置关联的行不能设置为不可见&qu ...
- Application.idle方法
Application.Idle()方法表示:当应用程序处于空闲状态时执行相应代码. 示例程序 1.界面设计:一个简单的Lable控件 2.代码 using System; using System. ...