如何在滚动 infragistics ultrawebgrid 时打开行号工具提示
我曾经见过这个功能,但我不知道如何打开它。拖动滚动条时,网格可以显示带有当前行号(或行 ID)的工具提示。这可以帮助您将滚动停止在正确的位置。我假设某些属性会打开此功能,但我找不到它。 也许它也取决于滚动模式?
更新: 在下图中,您可以看到我正在寻找的工具提示的示例。当滚动条被拖动(向上或向下)时会显示该信息。工具提示中的数字是行号(您在此图像中看不到它,位于网格的左侧)。这与我现在使用的网格相同。只是来自我们产品的非常旧的版本。不知何故,这个工具提示被关闭了。没有人知道如何重新打开它:( 我很确定这是 ultrawebgrid 的内置功能。不需要额外编码的东西。
替代文本 http://img138.imageshack.us/img138/6337/croppercapture.jpg< /a>
I once saw this feature in action but I don't know how to turn it on. The grid can show a tooltip with the current row number (or row ID) while dragging the scrollbar. This helps you to stop the scroll in the right place. I'm assuming some property will turn this on, but I can't find it.
Maybe it is also dependent on the scroll mode?
UPDATE:
In the image below you can see an example of the tooltip I'm looking for. This is displayed while the scrollbar is being dragged (up or down). The number in the tooltip is the row number (you can't see it in this image, way to the left in the grid). This is the same grid that I am using now. Just from a very old build of our product. Somehow this tooltip was turned off. And no one knows how to turn it back on :(
I'm pretty sure this is a built in feature of the ultrawebgrid. Not something that required extra coding.
alt text http://img138.imageshack.us/img138/6337/croppercapture.jpg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
正确的!现在我们已经确定您拥有 6.3 版本,我希望能为您找到解决方案。我自己没有 6.3,但我有一个稍晚的版本,我认为它还没有添加虚拟滚动作为一项功能。
因此,请尝试以下代码:
当您向下滚动时,这应该会自动在网格上放置一个工具提示。看看 此处 运行示例...(并记住选择虚拟选项)
这是希望!
罗布·G
Right! Now that we've established that you have version 6.3, I've hopefully got a solution for you. I don't have 6.3 myself, but I've got a slightly later one that I think didn't have Virtual Scrolling added as a feature yet.
So try this code:
This should automatically put a tooltip on the grid as you scroll down. Have a look here for a running sample... (and remember to choose the virtual option)
Here's hoping!
Rob G
我不知道是否有 UltraWebGrid 属性可以简单地打开您正在寻找的行为。我几乎怀疑您在另一个应用程序中体验过此功能,甚至可能不是基于网络的应用程序(抱歉!)。不过,我确实知道你在说什么。
作为解决方法,我建议允许用户输入目标行号,并使用 此技术。
如果这不能满足您的要求,可能可以使用 JavaScript 实现此行为。您需要使用类似这种技术来获取您需要的信息,估计(或者实际检测(如果可能)行号,其余的由 GUI 决定。不过,我会采用上面描述的解决方法:)
I don't know if there's a UltraWebGrid property to simply turn on the behavior you're looking for. I almost suspect you experienced this feature in another application, perhaps not even a web based one (sorry!). I do however, know exactly what you're talking about.
As a work-around, I would suggest allowing the user to input the destination row number, and to simply "jump" to it, using this technique.
If that doesn't satisfy you, it may be possible to achieve this behavior with JavaScript. You would need to use something like this technique to get the information you need, estimate (or actually detect, if possible) the row number, and the rest is up to the GUI. I would go with the work-around described above though :)
我在这里凭记忆输入此内容,因为我没有在这台计算机上安装它,而且之前也没有见过该设置,但是如何将这样的内容添加到
InitializeRow
事件中:对象本身不具有内存中的“标题”属性,但单元格具有。
看看是否有效...
问候,
罗布·G
I'm typing this from memory here as I don't have it installed on this machine and I haven't seen that setting before, but how about adding something like this to the
InitializeRow
event:The row object itself does not have a "Title" property from memory, but the cell does.
See if that works...
Regards,
Rob G
好的 - 我想我已经找到了您的虚幻设置:
您可以将
Override
上的TipStyleScroll
设置为网格上的Show
(这可能是版本相关)。您可以使用带区的
ScrollTipField
属性来确定将哪个字段显示为工具提示。我是这样做的:
......它就像一个魅力!
如果列表非常长,有时将
ScrollStyle
设置为Deferred
会有所帮助:希望有帮助...
Rob G
OK - I think I've found your illusive setting:
You can set the
TipStyleScroll
on theOverride
toShow
on the Grid (this may be version dependant).You can determine which field is displayed as the tooltip by using the
ScrollTipField
property of the band.I did it like so:
...and it works like a charm!
If it's a really long list, sometimes setting the
ScrollStyle
toDeferred
helps:Hope that helps...
Rob G
再次 - 不确定您使用的是哪个版本,因此为了安全起见,您可以尝试 2009 版本中的一些操作:
如果您的滚动模式是
Deferred
而不是Virtual
,则工具提示通常默认启用。您可以在此处<找到有关此功能的完整详细信息< /a>
希望有帮助,
罗布·G
Once again - not sure which version you have, so to be safe here's somthing you can try from 2009 version:
If your scrolling mode is
Deferred
instead ofVirtual
, then the tooltip is normally enabled by default.You can find full details about this feature here
Hope that helps,
Rob G