论坛首页 Web前端技术论坛

[发布] GT-Grid 1.12 版 (080904发布) ★

浏览 12174 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-09-04  
你是跑的哪个示例啊??
0 请登录后投票
   发表时间:2008-09-04  
我用的是自已的JSP,怎么不能上传附件?实际字段名等用数字或字母替换过。

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="Pragma" content="no-cache" />
		<meta http-equiv="Expires" content="-1" />
		<meta http-equiv="Cache-Control" content="no-cache" />

		<title><s:text name="aaaa" /></title>

		<link rel="stylesheet" type="text/css"
			href="<%=contextPath%>/gt-grid/gt_grid.css" />

		<script type="text/javascript"
			src="<%=contextPath%>/gt-grid/gt_msg_cn.js"></script>
		<script type="text/javascript"
			src="<%=contextPath%>/gt-grid/gt_grid_all.js"></script>

		<script type="text/javascript">

		var APP_PATH='<%=contextPath%>';
		var grid_atom_id = "Grid" ;
		
		var dsOption= {
			uniqueField : 'id' ,		
			fields :[
				{name : 'id' },
				{name : '11' },
				{name : '22' },
				{name : '33' },
				{name : '44'  },
				{name : '55'  },
				{name : '66'  },
				{name : '77'  }
			],
			recordType : 'object'
		}

		var colsOption = [

			{id: 'chk' ,isCheckColumn : true, checkType:'radio', frozen : !true , filterable : false, header: "", title: "单选" , fieldName : 'id'},				
			{id: 'id' , header: "ID" , width :60 },
			{id: '11' , header: "11" ,hdAlign:'center', width :100 },	
			{id: '22' , header: "22" , hdAlign:'center',width :100 },
			{id: '33' , header: "33" , hdAlign:'center',width :120},
			{id: '44' , header: "44" , hdAlign:'center',width :100 },
			{id: '55' , header: "55" ,hdAlign:'center', width :128 },
		
	 		{id: '66' , header: "66" , width :85, 
				renderer : '<a href="'+ APP_PATH +'/aab.action?id=@{id}" target="_bank" >'+'查看'+'</a> '
			},	
	 
	  		{id: '77' , header: "77" , width :85, 
				renderer :  '<a href="'+ APP_PATH +'/aac.action?id=@{id}" target="_bank" >'+'查看'+'</a>'
			}
			 
		];
		
		var gridConfig={	
			id : grid_atom_id,
			loadURL : APP_PATH+'/aaa.action',
			width: "90%",
			height: "390",
			container : 'mygrid_container',
			reloadAfterSave : true, 		
			autoUpdateSortState : true ,
			resizable : true,	
			remotePaging : true ,
			showIndexColumn : true,
			showGridMenu : true,
			allowFreeze : true,
			allowGroup : true,
			allowHide : true,
			toolbarPosition : 'bottom',
			toolbarContent : 'nav | goto | pagesize | reload | print | filter | state',
			stripeRows : true,
			lightOverRow : true,
			encoding : 'UTF-8',
			pageSize :  20 ,
			pageSizeList : [10,20,30,50],
			dataset : dsOption ,
			columns : colsOption 
		};
			
		var mygrid=new GT.Grid( gridConfig );
		GT.Utils.onLoad( function(){
				mygrid.render();
			} );

		</script>
	</head>
0 请登录后投票
   发表时间:2008-09-04  
我这里没有重现
0 请登录后投票
   发表时间:2008-09-04  
这个是在FF3.01中出现的
0 请登录后投票
   发表时间:2008-09-04  
我 ie6 ff2 ff3.01  chrome 都测试了 没重现啊

我把你的代码拷贝到新文件里 做了些简单的修改(改为了客户端取数据) 然后测试的


我测试的文件见 附件

放到 dist_b20080904\gt-grid\_doc\ 下

你看看这个文件在你那里有错吗
0 请登录后投票
   发表时间:2008-09-04  
好快就出来新版本了,谢谢fins的劳动

最近开始一个新项目,我正在验证GT-GRID的一些功能特点,遇到问题将会请教你
0 请登录后投票
   发表时间:2008-09-04  
老师好,发现有如下问题:
1、如果将grid容器的宽和高取掉,改变浏览器大小时,窗口宽度可以随着浏览器大小变化,但高度需要刷新一下才行。
2、选中后可以得到被选中的数据行数据,但翻页后状态还是选中,确得不到选中的数据了。
感谢您为大家的付出,我们会一直支持您!
0 请登录后投票
   发表时间:2008-09-04  
第一个问题 你设置 height : "100%"

第二个问题 是个 bug

谢谢 下一版本会努力修正 谢谢
0 请登录后投票
   发表时间:2008-09-04  
不知是不是BUG?
跳转到指定页,如果是在第1页,然后连续点击跳转到第1页,然后弹出IE遇到问题需要关闭,试过很多次都出现同样的问题。
0 请登录后投票
   发表时间:2008-09-04  
补充:运行的是mydemo3.html页面
0 请登录后投票
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics