I have no idea where this problem lies but maybe someone else will. I have a RadToolTipManager and a RadGrid with a template column. In the radgrid's itemdataboud event I add a imagebutton from the template column thusly:
ToolTipManager.TargetControls.Add(e.Item.FindControl("btnWhatever").UniqueID);
This works great - except when the grid is paging, and I'm trying to load the last page. THEN i get
Cannot find a server control with ID=ctl00$PgContent$gridErrors$ctl01$ctl42$btnWhatever. If you need to specify a client-side element ID, please set IsClientID to true.
This is very confusing. Note the parent control of the button is ctl42. There IS no ctl42. The rows go up to 40 and that's the last button added. If I check the tool tip manager's TargetControls collection on prerender there is no ctl42-anything. So I don't know where it's getting the idea that I want it to do anything with ctl00$PgContent$gridErrors$ctl01$ctl42$btnWhatever. Where can I even begin looking to figure out why it's trying to do stuff with this non existent control?
ToolTipManager.TargetControls.Add(e.Item.FindControl("btnWhatever").UniqueID);
This works great - except when the grid is paging, and I'm trying to load the last page. THEN i get
Cannot find a server control with ID=ctl00$PgContent$gridErrors$ctl01$ctl42$btnWhatever. If you need to specify a client-side element ID, please set IsClientID to true.
This is very confusing. Note the parent control of the button is ctl42. There IS no ctl42. The rows go up to 40 and that's the last button added. If I check the tool tip manager's TargetControls collection on prerender there is no ctl42-anything. So I don't know where it's getting the idea that I want it to do anything with ctl00$PgContent$gridErrors$ctl01$ctl42$btnWhatever. Where can I even begin looking to figure out why it's trying to do stuff with this non existent control?