热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在gridview固定标题上放弃-givenupongridviewfixedheader

Workingon:asp.netGridviewControlokitriedandtriedandmaybesearchedtheentirewebbuti

Working on: asp.net Gridview Control ok i tried and tried and maybe searched the entire web... but i could not find anything good for my asp.net gridviewcontrolwhich whill fix the header and allow sorting. but most of all work in all browsers and not just IE and Firefox alone.... chrome was the main problem nothing worked...

工作:asp.net Gridview控件确定我试过并尝试过,也许在整个网络上搜索...但是我找不到任何有益于我的asp.net gridviewcontrol,它可以修复标题并允许排序。但大多数都在所有浏览器中工作,而不仅仅是IE和Firefox ....铬是主要问题没有任何效果...

this was one option:

这是一个选择:

.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
 z-index: 10;
}

but here i first get an error that "expression(this.offsetParent.scrollTop);" not valid in top. even if this worked it work on all browsers.

但在这里我首先得到一个错误,“表达式(this.offsetParent.scrollTop);”在顶部无效。即使这适用于所有浏览器。

then there was this link:

然后有这个链接:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=255

but it only worked for IE and Firefox and that too not for IE 8.

但它只适用于IE和Firefox,而且不适用于IE 8。

then there were examples where the pseudo headers were created at fixed location but i have so many gridviews in my project that the alignment go haywire... also when did this got 2 headers in chrome... funny..

然后有一些例子,其中伪标题是在固定位置创建的,但我在我的项目中有如此多的网格视图,对齐变得混乱......同时这也是在Chrome中有2个标题...搞笑..

like the one here... http://aspdotnetcodebook.blogspot.com/2008/03/fixed-header-in-gridview-cross-browser.html

喜欢这里的那个... http://aspdotnetcodebook.blogspot.com/2008/03/fixed-header-in-gridview-cross-browser.html

so now im giving up.. if any one knows anything better... or thinks i am going wrong somewhere please help...

所以现在我放弃..如果有人知道更好的事情......或者认为我在某个地方出错了请帮忙......

thanks...

2 个解决方案

#1


1  

I don't know if this is an option for you, but Telerik's Grid control allows for a fixed header, works great in all browsers, and is extremely feature-rich in case you need to do grouping or multi-selection or anything of that nature.

我不知道这是否适合您,但Telerik的Grid控件允许使用固定的标题,在所有浏览器中都能很好地运行,并且在您需要进行分组或多选或其他任何操作的情况下功能非常丰富性质。

Again, maybe not a viable option if your shop doesn't have $800-$1000 to throw around for 3rd party tools, but from my experience, you won't be disappointed with Telerik's set!

再说一次,如果你的商店没有$ 800- $ 1000可以投入第三方工具,也许不是一个可行的选择,但根据我的经验,你不会对Telerik的设置感到失望!

#2


1  

In the CSS Editor of Visual Studio 2005, the expression(offsetParent.scrollTop) will be treated as a invalid value, and will show this invalid values in the Error List.

在Visual Studio 2005的CSS编辑器中,表达式(offsetParent.scrollTop)将被视为无效值,并将在错误列表中显示此无效值。

You can configure the Visual Studio 2005 not to show this error by Tools -> Options -> Text Editor -> CSS -> CSS Specific -> Uncheck "Detect invalid values".

您可以通过工具 - >选项 - >文本编辑器 - > CSS - > CSS特定 - >取消选中“检测无效值”来配置Visual Studio 2005不显示此错误。


推荐阅读
author-avatar
空心悟心
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有