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