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

ajaxified page onLoad

2 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 25 Oct 2011, 07:33 PM
Hi
I have an ajaxified page by RadAjaxManager , and jquery is enabled too.
on the onLoad event of jquery I want to find a reference to a RadButton :
            $(document).ready(function () {                
                var btn = $find("<%= btnAdminRibbonBar_SH.ClientID %>"); /* find button*/
                alert(btn.get_primaryIconElement());
            });

but I get a null reference
it seems that in this event RadButton is not loaded yet
is there any same event belong to telerik  ajax framework to use  (RadAjaxManager just have 2 client side event  )?

Thank you very much , for your feedback

2 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 26 Oct 2011, 02:38 PM
Hello Reza,

I tried to replicate the issue which you described, but to no avail. Attached to this message, you will find the code which I used for testing.

Please, take a look at it and let me know if there are any differences at your end, which I may be leaving out.

Greetings,
Mira
the Telerik team
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
0
reza
Top achievements
Rank 1
answered on 26 Oct 2011, 03:57 PM
Hello 
Thank you very very much 
I changed $(document).ready (in my code) to $telerik.$(document).ready (as your sample code) 
and I get a correct reference to RadButton.

Thank you very much.
Tags
General Discussions
Asked by
reza
Top achievements
Rank 1
Answers by
Mira
Telerik team
reza
Top achievements
Rank 1
Share this question
or