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

Problem after navigating back to a page

1 Answer 37 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Frank Canady
Top achievements
Rank 1
Frank Canady asked on 21 Dec 2011, 12:29 AM
I am receiving this error when navigating back to a page with RadComboBox controls:

Microsoft JScript runtime error: Unable to get value of the property 'showDropDown': object is null or undefined

    <script type="text/javascript" >
            function comboGotFocus(sender) {
                                var combo = $find(sender.id);
                                combo.showDropDown();
                            }    
    </script>

Error happens on code in bold.  If I refresh the page it works until I try navigating back to it..

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 22 Dec 2011, 03:46 PM
Hi Frank,

Please try the following implementation:
<script type="text/javascript">
 
          function comboGotFocus(sender) {
 
              sender.showDropDown();
          }
      </script>


Regards,
Dimitar Terziev
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
Tags
ComboBox
Asked by
Frank Canady
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or