Dear all
I have radgrid to show all student information (Data key:student_id) and i use radtooltip to show details information about this student , but the problem hapen after filter my radgrid when mose move over any row the radtooltip retrive wrong information about student , the radtooltip use the previous primary key like before filter
here simulation example
before filter
student_id Name
A1 A
A2 B
A3 C
A4 D
A5 E
A6 F
After filter
student_id Name
A5 E
A6 F
when mouse move over A5 the radtooltip show A1 and when mouse move over A6 the radtooltip show A2
also the code to retriev primary key to radtooltip is
how to solve this problem
I have radgrid to show all student information (Data key:student_id) and i use radtooltip to show details information about this student , but the problem hapen after filter my radgrid when mose move over any row the radtooltip retrive wrong information about student , the radtooltip use the previous primary key like before filter
here simulation example
before filter
student_id Name
A1 A
A2 B
A3 C
A4 D
A5 E
A6 F
After filter
student_id Name
A5 E
A6 F
when mouse move over A5 the radtooltip show A1 and when mouse move over A6 the radtooltip show A2
also the code to retriev primary key to radtooltip is
Protected Sub OnAjaxUpdate(sender As Object, args As ToolTipUpdateEventArgs)
Me.UpdateToolTip(args.Value, args.UpdatePanel)
End Sub
Private Sub UpdateToolTip(elementID As String, panel As UpdatePanel)
Dim ctrl As Control = Page.LoadControl("../Class_Details.ascx")
Session("center_id") = elementID
panel.ContentTemplateContainer.Controls.Add(ctrl)
End Sub
how to solve this problem