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

javascript intellisense doesn't seem to be working

3 Answers 126 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
AVH
Top achievements
Rank 1
AVH asked on 17 Nov 2008, 11:52 PM
hello,

i am using 2008 q3 ajax radcontrols with vs2008sp1 and latest sp on all net frameworks.  i have tried with net2 and net35.  i have tried my own projects and new projects and the telerik projects.  i have tried registering the telerik.web.ui.dll in the GAC for both net2 and net35.

two issues
in my own project i get an error 'A runtime Error has occurred. Do you wish to debug?  Line 13 Error: Object expected.
on this line of code var combo = $find("RadComboBox1");

in all projects i do not seem to have access to Telerik intellisense within javascript.  i have even tried with this Telerik example
Telerik.ComboboxExamplesCS.MultipleComboBoxes

When I try to click a . in the code below to bring up intellisense, I do not get any Telerik intellisense.  For example if I click . next to citiesCombo. , I do not see set_text option or requestItems as expected.

                function LoadCities(combo, eventarqs)
                {    
                    var countriesCombo = $find("RadComboBox2");    
                    var citiesCombo = $find("RadComboBox3");
                    var item = eventarqs.get_item();
                    
                    citiesCombo.set_text("Loading...");
                    citiesCombo.requestItems(item.get_value(), false);                    
                }

I have searched Telerik and Google with no luck, many old references to the intellisense anyway.

How can I get access to Telerik intellisense within javascript.

Thanks,

avh



3 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 18 Nov 2008, 04:40 PM
Hello AVH,

Straight to your questions:

  1. The error says that you have not referenced the combobox correctly. There ciould be different reasons for that and I cannot tell you what is the actual reason in your particular case since I do not have your code. One possible reason is that the combobox is in an INaming Container - in this case you should reference it through its ClientID like this: var combo = $find("<%=RadComboBox1.ClientID"%>);. Another possible reason for such error is that you try to reference the combobox too early in the page lifecycle, before its client object is created. In case my assumptions do not help, please prepare a simple, fully runnable demo project, open a new support ticket and send it to us along with detailed reproduction instructions.
  2. For the time being we do not offer a javascript intellisense but we are currently investigating the best practices in this matter and what could be the possible results of introducing it.

Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
AVH
Top achievements
Rank 1
answered on 18 Nov 2008, 06:36 PM
thank you, resolved.

avh
0
Mike Reeder
Top achievements
Rank 1
answered on 24 Feb 2009, 10:38 PM
adding javascript intellisense to the Rad Ajax controls would be INVALUABLE and a giant boost to productivity!
Tags
General Discussions
Asked by
AVH
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
AVH
Top achievements
Rank 1
Mike Reeder
Top achievements
Rank 1
Share this question
or