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

$find return null after request in Chrome, Opera, Safari

2 Answers 93 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 22 Mar 2010, 07:47 PM
$find return null after request in Chrome, Opera, Safari

                    <telerik:RadAjaxPanel ID="rapProjects" runat="server" ClientEvents-OnResponseEnd="ProjectsResponseEnd" > 
                        <telerik:RadComboBox ID="rcbProjects" runat="server"  
                            OnClientDropDownOpening="InitiaterapProjectsRequest" > 
                        </telerik:RadComboBox> 
                    </telerik:RadAjaxPanel> 
                    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server" > 
 
                        <script type="text/javascript"
                            function InitiaterapProjectsRequest(sender, eventArgs) { 
                                var ajaxManager = $find("<%= rapProjects.ClientID %>"); 
                                ajaxManager.ajaxRequest(''); 
                                return false; 
                            } 
                             
                            function ProjectsResponseEnd(sender, eventArgs) { 
                                var combo = $find("<%= rcbProjects.ClientID %>"); 
                                window.alert(combo); //HERE combo is null in Chrome, Opera, Safari
                            } 
                       </script> 
 
                    </telerik:RadCodeBlock> 
 

2 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 23 Mar 2010, 04:47 PM
Hello Sergey,

I tested your code on the browsers you have specified but the client-side object of the RadComboBox is retrieved successfully. Can you confirm that the markup you have pasted is enough to reproduce the issue?

All the best,
Pavel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sergey
Top achievements
Rank 1
answered on 24 Mar 2010, 10:43 AM
Sorry it was my fault, i had block style like this in header:

<style>
  .T{ color:red;
</style>

without }
Tags
Ajax
Asked by
Sergey
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Sergey
Top achievements
Rank 1
Share this question
or