滚动和工具提示不适用于 Telerik RadGrid

发布于 2024-12-21 01:47:26 字数 120 浏览 3 评论 0原文

我发现 Telerik RadGrid 存在一个奇怪的问题。

我已经使用了滚动分页,并且我已经实现了工具提示编辑。但工具提示仅针对第一个网格中的数据出现,其余数据工具提示消失。

帮我解决这个..

I found a strange problem with Telerik RadGrid.

I have used paging with scrolling in it, and in that i have implemented the tool tip edit. But tool tip only appear for the data in first grid, for rest of the data tool tip disappears.

Help me with this..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

染火枫林 2024-12-28 01:47:26

我知道这已经晚了两年了,但对于仍然遇到这个问题的人(就像我一样),这是我用作解决方法的方法。

在 RadGrid 的 ItemDataBound 方法中,创建一个标签,将其文本和工具提示设置为您想要的任何内容,然后将其作为控件添加到需要工具提示的单元格。这是我的代码:

Private Sub WeeklyDataGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles WeeklyDataGrid.ItemDataBound
     If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
          Dim tooltip As New Label
          tooltip.Text = drv("JobNumber").ToString.Trim
          tooltip.ToolTip = drv("ProjectName").ToString.Trim
          e.Item.Cells(0).Controls.Add(tooltip)
     End If
End Sub

非常适合我。

I know this is 2 years late, but for anyone still running into this problem (like I was), here is what I used as my workaround.

In your RadGrid's ItemDataBound method, create a Label, set its Text and Tooltip to whatever you want, and then add it as a control to whichever cells need tooltips. Here's my code:

Private Sub WeeklyDataGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles WeeklyDataGrid.ItemDataBound
     If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
          Dim tooltip As New Label
          tooltip.Text = drv("JobNumber").ToString.Trim
          tooltip.ToolTip = drv("ProjectName").ToString.Trim
          e.Item.Cells(0).Controls.Add(tooltip)
     End If
End Sub

Works perfectly for me.

因为看清所以看轻 2024-12-28 01:47:26

不幸的是,Telerik grid 无法实现此功能。我收到了 Telerik 团队的回复..

Unfortunately this feature is not possbile with telerik grid. I got this reply from telerik team..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文