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

JavaScript IntelliSense issue with Q1 2010 release

0 Answers 308 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 12 Mar 2010, 05:30 PM
We discovered a few issues with the JavaScript IntelliSense of RadControls for ASP.NET AJAX in the Q1 2010 release.

1. The JavaScript IntelliSense breaks when you include script references to the embedded jQuery:

<asp:ScriptManager ID="ScriptManager1" runat="server">  
   <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> 
    </Scripts> 
</asp:ScriptManager> 

One solution would be to reference the jQuery scripts from an external location, for example placing them in the root of your web site/web application:

        <asp:ScriptManager runat="server" ID="ScriptManager1">  
            <Scripts> 
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
                <asp:ScriptReference Path="~/jquery-1.4.2.js" /> 
            </Scripts> 
        </asp:ScriptManager> 




2. The to<ControlName> JavaScript IntelliSense helper method causes run time error for the following controls: AsyncUpload, TabStrip, ToolBar, Upload, Scheduler, TreeView, ListBox, ComboBox, PanelBar.
As a workaround you can use the find<ControlName> method instead:

function itemClicked(sender, args) {
   //the normal approach which is broken in Q1 2010 official release
   //var listBox = $telerik.toListBox(sender);
    
   var listBox = $telerik.findListBox(sender.get_id());
}


The problems have been addressed in the latest internal build of RadControls (upgrade instructions are available here). The issues will be fixed officially in the Q1 2010 SP1 release of the suite, expected in mid April.
Tags
General Discussions
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Share this question
or