This is a migrated thread and some comments may be shown as answers.

User Control Page_Load doesn't fire

1 Answer 52 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Neero
Top achievements
Rank 1
Neero asked on 29 May 2013, 03:20 AM
I have a user control which has a radgrid and I load the grid on user controls page load event, and load it through a radtooltip control in  my main page on a button click, When the user control load via ToolTip the page load event doesn't fire in user control, so my grid populating method in the page load and it doesn't work. please advice

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 30 May 2013, 11:26 AM
Hello Neero,

When using the RadToolTipManager load-on-demand capabilities the controls must be bound in the PreRender event of the user control in order to have the new values. This is explained here: http://www.telerik.com/help/aspnet-ajax/tooltip-troubleshooting-common-issues.html.

In case you are using your own form of LOD and not the built-in one you must make sure that you recreate the controls in time, preferrably during the Page_Init event of the hosting page so that the same ones are available in the Page_Load event. Other than these two I cannot think of any reasons for issues with the Page_Load event of a user control. It should fire in any case, when the control is loaded, regardless of the code that loads it. If it does not, for some reason, the issue should be sought in the control itself.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ToolTip
Asked by
Neero
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or