|
Article relates to
|
all versions of RadControls
|
|
Created by
|
Paul, Telerik
|
|
Last modified
|
March 13, 2008
|
|
Last modified by
|
Georgi Popivanov, Telerik
|
HOW-TO
Add Visual Studio IntelliSense support for the RadControls
SOLUTION
Using IntelliSense in Visual Studio 2003
Follow the instructions below to enable IntelliSense support for the RadControls in VS.NET IDE:
- Download the needed XSD files from the "Article Files" section below
- Remove the old XSD file, if you are using such
- Copy the appropriate XSD file in your
..\<Visual Studio Installation Folder>\Common7\Packages\schemas\xml folder
Please, note that you must restart VS.NET after copying the .xsd files to the specified folder in order to add the xmlns attributes
- Add the scheme in your ASPX - the xml namespace declaration attribute should be set within a surrounding tag, such as <SPAN> and then place the control declaration inside it to take advantage of the Intellisense. For example (RadGrid):
| <span xmlns:radG="http://schemas.telerik.com/Intellisense/RadGrid"> |
| ................ |
| <radg:RadGrid id="RadGrid1" runat="server" /> |
| ................ |
| </span> |
| |
| or |
| |
| <body xmlns:radG="http://schemas.telerik.com/Intellisense/RadGrid"> |
| ................ |
| <radg:RadGrid id="RadGrid1" runat="server" /> |
| ................ |
| </body> |
IMPORTANT: You should
never set the
xmlns attribute to a server control declaration, i.e. the following will be wrong:
<form id="Form1" runat="server" xmlns:radG="
http://schemas.telerik.com/Intellisense/RadGrid">
<radg:RadGrid id="RadGrid1" runat="server" />
</form>
The instructions above are the same for all of our controls. You will just need to change the
xmlns attribute to point to the appropriate tag prefix of our control, for example (for RadEditor):
| <%@ Register TagPrefix="radE" Namespace="Telerik.WebControls" Assembly="RadEditor" %> |
| |
| <body xmlns:radE=http://schemas.telerik.com/Intellisense/RadEditor> |
| <radE:RadEditor ID="editor1" Runat="server" |
| ...... |
| </radE:RadEditor> |
| ...... |
| </body> |
| |
Using IntelliSense in Visual Studio 2005
Visual Studio 2005 automatically enables IntelliSense - through reflection it detects all classes, properties and methods in the dll file(s).
For additional convenience each Telerik control is provided an XML file which contains the comments for its classes, properties and methods.
For example, when Telerik RadEditor is dragged to the webform the RadEditor.Net2.xml file is automatically added in the bin directory of the project.
In ASPX, when you start typing or when you insert a space, VisualStudio will show a dropdown with suggestions for autocomplete.
In code-behind, each time a particular class/property/method is being selected from the dropdown of the autocomplete functionality, a tooltip with the comment for this class/property/method is displayed:

Visual Studio 2005 automatically enables IntelliSense - through reflection it detects all classes, properties and methods in the DLL file. For additional convenience Telerik RadControls is provided an XML file which contains the comments for its classes, properties and methods.
For example, when Telerik Control is dragged to the webform the XML file is automatically added in the bin directory of the project.
In ASPX, when you start typing or when you insert a space, VisualStudio will show a dropdown with suggestions for autocomplete:
In code-behind, each time a particular class/property/method is being selected from the dropdown of the autocomplete functionality, a tooltip with the comment for this class/property/method is displayed:
Using IntelliSense in Visual Studio 2008 / 2010
Visual Studio 2008 / 2010 automatically enables IntelliSense - it detects all classes, properties and methods in the DLL file.
For additional convenience each Telerik control comes with an XML file which contains the comments for its classes, properties and methods.
When the Telerik control is dragged to the webform the XML file is automatically added in the bin directory of the project.
In ASPX, when you start typing or when you insert a space, Visual Studio will show a dropdown with suggestions for autocomplete.
Visual Studio 2008 / 2010 automatically enables IntelliSense - it detects all classes, properties and methods in the DLL file and the JavaScript code.
For additional convenience the Telerik RadControls for ASP.NET AJAX suite comes with an XML file which contains the comments for its classes, properties and methods.
When Telerik Control is dragged to the webform the XML file is automatically added in the bin directory of the project.
In ASPX, when you start typing or when you insert a space, VisualStudio will show a dropdown with suggestions for autocomplete:

RadControls for ASP.NET AJAX also expose JavaScript IntelliSense for
their client scripts under VS 2010. For more information refer to
this blog post. You can also use jQuery IntelliSense by registering the corresponding JS files with the ScriptManager control.
Visual Studio 2008 provides full Javascript Intellisense completion in ASPX files, HTM files, as well as in external JS files. It provides rich support for the ASP.NET AJAX client JavaScript framework and JavaScript code built with it:

In code-behind, each time a particular class/property/method is being selected from the dropdown of the autocomplete functionality, a tooltip with the comment for this class/property/method is displayed.

Please
Sign In
to rate this article.