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

Any client-side event that guarantees all DOM elements initialized?

1 Answer 31 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
roger
Top achievements
Rank 1
roger asked on 02 Mar 2009, 06:58 PM
Hi,

   In my page, I use a RadPanelBar control designed to simulate Outlook's sidebar, with the RadPanelBar placed below a RadMultiPageView. The contents of the RadPageView extended beyond the appropriate size, so I use a Javascript function (named "afterResize()") to adjust the size so that it fits the PageView's dimenions precisely. Anytime the RadPageView's dimensions are adjusted, the function is called by the event OnClientResize="afterResize". This all works fine.

   My problem is that I'm not sure how to call afterResize() when the page first initializes. I tried using window.onload and pageLoad(), but these don't work properly; it seems that these events fire before the Tk controls have been fully loaded. Are there any event handlers that capture when Telerik controls are finished loading in the client?
  
Roger

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 04 Mar 2009, 11:44 AM
Hi Roger,

pageLoad() is the best place to call you logic. pageLoad() is called after all controls are loaded. If your problem persists, I think it will be best if you can open a support ticket and send us a simple running project (incl. CSS, images, DB backup and so on) demonstrating the problems. In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

All the best,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
roger
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or