I have just move a grid from a page to a usercontrol. Since the scriptmanager is at the page level, I'm not sure how to reference it to run the following piece of code in my grid's PreRender:
I can't find it with Page.FindControl("RadScriptManager1")
Thanks!
for (int i = 0; i <= ShotDetail_RadGrid.MasterTableView.Items.Count - 1; i++) { Panel aspPanel = ShotDetail_RadGrid.MasterTableView.Items(i).ChildItem.FindControl("InnerContainer"); RadGrid attachmentsGrid = aspPanel.FindControl("Attachments_RadGrid"); RadScriptManager1.RegisterPostBackControl(attachmentsGrid); // Problem is here}I can't find it with Page.FindControl("RadScriptManager1")
Thanks!