This is a migrated thread and some comments may be shown as answers.

Wrong ToolTip fire in filtered Grid?

1 Answer 37 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 04 Aug 2009, 03:08 PM

I have a RadGrid column on the second level hierarchy with ToolTips and it works very nice. However, as soon I filter the grid do rows then it look like the ToolTips still referenced somehow to none-filtered grid. Did anybody experience this problem?

Here is how I set the key for the ToolTips object on my second hierarchy level:

    Protected Sub grdLineGrid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)  
        If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then  
            Dim target As Control = e.Item.FindControl("LinePayment")  
            If Not [Object].Equals(target, Nothing) Then  
                If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then  
                    Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)  
                    Me.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row("Inv_Doc_No").ToString() + "|" + currentRow.Row("Pay_Item").ToString() + "|" + currentRow.Row("Inv_Type").ToString(), True)  
                End If  
            End If  
        End If  
    End Sub 

When my OnAjaxUpdate event fires and the rows are filtered then the ToolTipUpdateEventArgs.Value is always a first row on the given page, not the one I move mouse over.

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 07 Aug 2009, 12:34 PM
Hi Roman ,

Do you by any cahnce have ajaxified the grid? If so, make sure that when you udate the grid you also update the RadToolTipManager because teh problem you report seems like you modify the taregt controls by the filtering and at the same time the RadToolTipmanager's TargetControls collection does not get updated and stays with its old data.

 Let me know whether this helps.

Greetings,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
Roman
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or