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

[Solved] Problem initializing controls client side

1 Answer 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 27 Feb 2008, 01:46 AM

Hi,

I would like to use a javascript function to initialize some controls (a number of RadComboBoxes and a RadTreeView) with cached reference data values on the client - I have tried using the RadAjaxPanel's ResponseScripts property to call my initialize function however the problem I am encountering is that the initialize function is called before the controls have been created via a number of:

 Sys.Application.add_init(function() { $create(Telerik.Web.UI.RadComboBox,{....;
 etc
 
My question - is there any method whereby I can ensure that my initialize function call will be added as the last piece of script to the page so that when it is called all the telerik components will have been created.

Regards, MPC.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Feb 2008, 07:57 AM
Hi Michael,

You can use Sys.Application load event:

http://www.asp.net/ajax/documentation/live/ClientReference/Sys/ApplicationClass/SysApplicationLoadEvent.aspx

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or