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

[Solved] RadGrid with TooltipManger Not Cleared

3 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
waseem
Top achievements
Rank 2
waseem asked on 10 Jan 2010, 07:20 AM
Dear,

Version Q2 2009 released 08/26/2009
Visual Studio 2008 (VB.NET)
OS Win7

Reference of your Example " Grid / Tooltipified RadGrid "

Note, that when the page index is changed, or a sorting has been done, the RadToolTipManager's TargetControls collection is cleared because the records on the new grid's page have the same ClientIDs as the old ones.

i did exactly as you mention in the example. but i am doing little bit change. in "UpdateToolTip" routine. i my case the behavior is little bit change. on Page 2 its showing the Page 1 tool tip. and On Page 3 its Showing Page 2 tool tip. when we comeback on previous page 2 its showing Page3 tooltip.  :(

please if you can figureout this problem.

 

 

Private Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)

 

 

 

 

Dim ctrl As Control = Page.LoadControl("usercontrols/_attractions.ascx")

 panel.ContentTemplateContainer.Controls.Add(ctrl)

 

Dim TempHotel As DataTable = ViewState("AttractionDetails")

  

 

Dim i As Integer

 

 

 

 

 

 

Dim TempTable As New DataTable

 

 

Dim DC As DataColumn

 

DC =

 

New DataColumn

 

DC.ColumnName =

"HotelCode"

 

 

 

 

DC.DataType = System.Type.GetType("System.String")

 

 

 

TempTable.Columns.Add(DC)

DC =

New DataColumn

 

 

 

DC.ColumnName =

"AttrName"

 

 

 

 

 

 

DC.DataType = System.Type.GetType(

"System.String")

 

 

 

TempTable.Columns.Add(DC)

DC =

New DataColumn

 

 

 

DC.ColumnName =

"Distance"

 

 

 

 

 

 

 

DC.DataType = System.Type.GetType(

"System.String")

 

 

 

TempTable.Columns.Add(DC)

 

 

 

Dim FindDR() As DataRow = TempHotel.Select("HotelCode='" & elementID & "'")

 

For i = 0 To FindDR.Length - 1

 

 

 

 

 

Dim DR As DataRow

 

DR = TempTable.NewRow

DR(0) = FindDR(i).Item(0)

DR(1) = FindDR(i).Item(1)

DR(2) = FindDR(i).Item(2)

TempTable.Rows.Add(DR)

 

 

Next

 

 

 

 

 Application(

"TempData") = TempTable

End Sub

becuase my all data is coming from XML Source just for display. i am not fatching this data from the database.

One more thing i want to share not realated with this problem. i need to create a XMLNode like <c:condition> is it posible?

Regards

 

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 13 Jan 2010, 12:37 PM
Hello waseem,

Could you open up  a formal support ticket and send a small test project with your implementation as it is not very clear what exactly is your scenario (is it supposed to work as the online example?) and what exactly the issue is (is it only in the fact that when coming back from page 3 it is showing page 2 tooltips or the whole description of events you have described is not desirable).

Thanks.

Best wishes,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
waseem
Top achievements
Rank 2
answered on 13 Jan 2010, 02:50 PM
Dear,

its dificult to upload a test project becuase its a live data i m going to display. not from SQL database. simply when i change the page index (paging). RadToolTipManager's TargetControls collection is not cleared because the records on the new grid's page have the same ClientIDs as the old ones.

i will try to make a ticket.
0
Tsvetoslav
Telerik team
answered on 14 Jan 2010, 12:46 PM
Hello waseem,

If the RadToolTipManager's TargetControls collection not being cleared is the problem, just try clearing it as demonstrated in the example:

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == "Sort" || e.CommandName == "Page")
    {
        RadToolTipManager1.TargetControls.Clear();
    }
}

Nevertheless, if the problem persists or I have misunderstood the issue, please, open up a formal support ticket, send a small test project and give us more information on the problem illustrating the details on the attached sample.

Thanks.

Kind regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
waseem
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
waseem
Top achievements
Rank 2
Share this question
or