Hi
I am trying to run some code behind based on the SelectedItemChanged event of RagdGrid1.
I have this running OK in a standard aspx page but I am trying to use the same approach
with the Grid in a master page. How do I reference the RadGrid from the child page?
I am trying this:
This approach works for finding labels and text boxes for the onload event, but in this case, although the selected row changes color,
the code behind does not run. (and no produces no run time errors)
Can you help?
Thanks
Clive
I am trying to run some code behind based on the SelectedItemChanged event of RagdGrid1.
I have this running OK in a standard aspx page but I am trying to use the same approach
with the Grid in a master page. How do I reference the RadGrid from the child page?
I am trying this:
Imports
Telerik.Web.UI
Partial Class latour
Inherits System.Web.UI.Page
Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1_SelectedIndexChanged |
Dim strUnitOfSale, strName, strVintage, strProductCode As String |
Dim RadGrid1 As RadGrid |
RadGrid1 = CType(Master.Master.FindControl("ContentPlaceHolder3col").FindControl("RadGrid1"), RadGrid) |
' code to do stuff here End Sub End Class |
This approach works for finding labels and text boxes for the onload event, but in this case, although the selected row changes color,
the code behind does not run. (and no produces no run time errors)
Can you help?
Thanks
Clive