User Control Page_Load doesn't fire

2 posts, 0 answers
  1. Neero
    Neero avatar
    1 posts
    Member since:
    Feb 2013

    Posted 28 May 2013 Link to this post

    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
  2. Marin Bratanov
    Marin Bratanov avatar
    3563 posts

    Posted 30 May 2013 Link to this post

    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:

    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.

    Marin Bratanov
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top