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

Intellisense for kendo ui in general (Javascript)

1 Answer 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sylvester
Top achievements
Rank 1
sylvester asked on 19 Aug 2013, 09:35 AM
Hi,

I am trying to get the intellisense to work with my VS2010 express.

I have followed the instruction from the thread below :
http://www.kendoui.com/forums/kendo-ui-web/general-discussions/kendo-ui-intellisense-support.aspx
Everything is working as shown in the tread.

But I would like to know the "level" of intellisense that it supports. Or how detail the current Intellisense would help us to code.

For example, when I type
$('foo').kendo....
It will list all the available kendo object type available
kendoAutoComplete
kendoCalendar
kendoComboBox, etc......

so if I want to initialize a kendoAutoComplete
I will use
$('#foo').kendoAutoComplete

The question I want to ask is that ...
does the intellisense stops right here ?
for example, after I have type $('#foo').kendoAutoComplete, it does list all the avaialbe options for initalizing the auto complete control

now, let say i want to initiazlie the autocomplete control with a datasource.
the correct syntax is
 
$('#foo').kendoAutoComplete({ dataSource: data});

but if I then type
$('#foo').kendoAutoComplete({ d
the intellisense won't suggest that there is a dataSource property available such that I can initilize the autoComplete control with the specified datasource.

Is the Intellisense suppose to suggest the dataSource and other properties?
 As suggested by Faisal in this thread
http://www.kendoui.com/forums/kendo-ui-web/general-discussions/intellisense-in-visual-studio.aspx

Thank you


1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 21 Aug 2013, 10:39 AM
Hi Sylvester,

Currently the IntelliSense is unable to suggest the dataSource and other properties while declaring an object. The dynamic type nature of JavaScript puts certain limits of how deep the IntelliSense can go and these limits are reached in the examples you gave.


Kind Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
sylvester
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or