Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
968 views

Q2 2011 Service Pack 1 (Version 2011.2.915)

Breaking change: 
Now all HTML 5 compliant browsers, which support the File API interface (FireFox 4.0+, Chrome latest, Safari 5.0+), use the File API module.

Reason:
Numerous of problems with the Silverlight/Flash plugins in browsers different than IE. The FileAPI module provides the same features as Flash/Silverlight with one exception. It is not yet possible to display extensions filter within the select file dialog. However, this functionality is part of the input[type='file'] specification and it is about time that the browsers implement it.

Problem:
Using the Flash module in IE6/7/8 debug information is displayed into the Developers Bar JavaScript console.

Reason: 
Non commented console.log invocation within the ActionScript code.

Solution:
The problem will be resolved in the upcoming Latest internal build.

Q2 2010 (Version 2011.2.713)

Problem
: RadAsyncUpload sometimes fail to upload the files to the target folder.

Reason: The temporary files, which RadAsyncUpload uses internally to save the uploaded files to the target folder, are being deleted too early, hence leaving the upload without files to save.

Solution: We have fixed the problem for the latest internal build (version 2010.2.722+). More information on how to obtain the latest internal build can be found here.

Alternatively, you can do the following:

Step 1: Add an ashx handler to your app. Inside, use the following code:

<%@ WebHandler Language="C#" Class="CustomHandler" %>
 
using System;
using System.Web;
using Telerik.Web.UI;
 
public class CustomHandler : AsyncUploadHandler {
 
    
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
    {
        configuration.TimeToLive = TimeSpan.FromHours(4);
        return base.Process(file, context, configuration, tempFileName);
    }
 
}

Then, set the HttpHandlerUrl property of RadAsyncUpload to point to that handler. Like this:

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" HttpHandlerUrl="~/CustomHandler.ashx" TargetFolder="~/Documents">
        </telerik:RadAsyncUpload>

Related forum post: FIX: RadAsyncUpload sometimes does not save the uploaded files to the target folder.



Other issues:

SOLUTION: Upload fails OR Login prompt appears when using Forms / Windows Authentication
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 20 Jul 2010
0 answers
691 views
Problem: RadAsyncUpload sometimes fail to upload the files to the target folder.

Reason: The temporary files, which RadAsyncUpload uses internally to save the uploaded files to the target folder, are being deleted too early, hence leaving the upload without files to save.

Solution: We have fixed the problem for the latest internal build (version 2010.2.722+). More information on how to obtain the latest internal build can be found here.

Alternatively, you can do the following:

Step 1: Add an ashx handler to your app. Inside, use the following code:

<%@ WebHandler Language="C#" Class="CustomHandler" %>
 
using System;
using System.Web;
using Telerik.Web.UI;
 
public class CustomHandler : AsyncUploadHandler {
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
    {
        configuration.TimeToLive = TimeSpan.FromHours(4);
        return base.Process(file, context, configuration, tempFileName);
    }
}

Step 2: set the HttpHandlerUrl property of RadAsyncUpload to point to that handler. Like this:

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" HttpHandlerUrl="~/CustomHandler.ashx" TargetFolder="~/Documents">
        </telerik:RadAsyncUpload>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 20 Jul 2010
1 answer
99 views
Hello,

The HTML for checkbox column is below,

<

 

telerik:GridTemplateColumn UniqueName="Approve" HeaderText="Approve">

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="chkApprove" runat="server" Checked="true" Enabled="false" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 



but, checkedbox is not appread as dimde, howevere one can't off/on, What need to make these looks dimded.
Pavlina
Telerik team
 answered on 20 Jul 2010
2 answers
119 views
I attached you a file!

by default - Localization-Add text is "Add"
i want to rename it to "Add New Attachment", but when i renamed it the width of this button is still the same?
how can I make this right?


<telerik:RadUpload ID="ruAttachment" ExternalDialogsPath="~/controls/EditorDialogs/"    runat="server" InitialFileInputsCount="1" LocalizationPath="../RadControls/Upload//Localization" ControlObjectsVisibility="RemoveButtons, AddButton" Width="100%" Font-Names="Verdana"    Font-Size="7pt" InputSize="45"  Localization-Add="Add New Attachment" Localization-Remove="Remove Attachment"  >
</telerik:RadUpload>

How can i control the WIDTH of Localization-add
Em4o
Top achievements
Rank 2
 answered on 20 Jul 2010
13 answers
249 views
We are using RadEditor LIte on SharePoint/MOSS 2007.  When checking for memory leaks with SPDisposeCheck, RadEditor is listed as not disposing of all its memory.  Is this a false positive?  We are on version 4.5.3.0 but checked the dll for the newer version, and it still does not pass the SPDisposeCheck. 

Thanks, Connie

Stanimir
Telerik team
 answered on 20 Jul 2010
8 answers
204 views
Hi,
I'm developing on Win7 with VS2008 SP1, IIS7.
The production server is Windows 2008 R2 with IIS7.

After moving from the trial version to the licensed version, everything looks perfect in the development environment, but in the production no images are loaded (chart appears as red X and menu are only textual).
I read some threads on the forum regarding this issue but as I said, I'm using VS2008 with SP1 and both environments has IIS7.

Below is a copy of my web.config file.

What have I done wrong?
Thanks,
Niv.
------------------------------------------------------------------
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
</appSettings>
<connectionStrings/>
<system.web>
<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions 
            where data loss can occur. 
            Set explicit="true" to force declaration of all variables.
        -->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="200"/>
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="Telerik.Web.Design, Version=2010.2.713.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
<add assembly="Telerik.Web.Design, Version=2010.2.713.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/></assemblies>
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
<authentication mode="Windows"/>
<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
<httpHandlers>
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler"/>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

.
niv kfir
Top achievements
Rank 1
 answered on 20 Jul 2010
4 answers
136 views
Hi,

How can I access this method for RadTreeView. It seems that I've got only "CheckAllNodes"?
http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.radtreeview-uncheckallnodes.html


Thanks, Nadia
Veronica
Telerik team
 answered on 20 Jul 2010
10 answers
618 views
Hi Guys,

After sorting out my recent problems getting radtooltip to work inside a datalist I found out i can't use Load on Demand with a tootip, only with a tooltip manager so I have had to rewrite it all to get it working. However I am having lots of problems.

First of all here is my code.

<%@ Page Language="VB" MasterPageFile="Master.master" %> 
<%@ MasterType  virtualPath="Master.master"%> 
 
<%@ Import Namespace="System.Configuration.ConfigurationManager" %> 
<%@ Import Namespace="System.Data" %> 
<%@ Import Namespace="System.Data.SqlClient" %> 
<%@ Import Namespace="System.collections.Generic" %> 
<%@ Import Namespace="Tvi" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
 
 
<script runat="server"
     
    Dim Reader As SqlDataReader 
    Dim Files As String = AppSettings("files_url") 
 
    Sub Page_Load() 
         
        MyRepeater.DataSource = Database.getDataReader("SELECT TOP 10 Caption, Thumbnail FROM Photos") 
        MyRepeater.DataBind() 
         
    End Sub 
     
     
    Sub MyRepeaterBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) 
         
        If e.Item.ItemType = ListItemType.AlternatingItem OrElse e.Item.ItemType = ListItemType.Item Then 
             
            Dim TempImage As Image = DirectCast(e.Item.FindControl("MyImage"), Image) 
             
            Dim ClientID As String = TempImage.ClientID 
             
            CommentToolTip.TargetControls.Add(ClientID, True) 
             
        End If 
         
    End Sub 
     
     
    Protected Sub OnAjaxUpdate(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs) 
        Dim elementID As String = args.TargetControlID 
        'Add content when necessary 
        args.UpdatePanel.ContentTemplateContainer.Controls.Add(New HtmlGenericControl("HR")) 
    End Sub 
         
</script> 
 
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
     
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"
        <ContentTemplate> 
         
         
            <asp:repeater runat="server" id="MyRepeater" onitemdatabound="MyRepeaterBound"
                    <itemtemplate> 
                        <asp:image runat="server" id="MyImage" imageurl='<%# Files + DataBinder.Eval(Container.DataItem, "Thumbnail")%>'/> 
                    </itemtemplate> 
                </asp:repeater> 
         
         
        </ContentTemplate> 
    </asp:UpdatePanel> 
     
    <telerik:radtooltipmanager  
        runat="server"  
        id="CommentToolTip"  
        ManualClose="true" 
        Sticky="true"  
        Title="Hello"  
        Skin="Web20"  
        Width="350px"  
        Height="250px"  
        Position="MiddleRight"  
        OffsetX="6" 
        Animation="Fade"  
        OnAjaxUpdate="OnAjaxUpdate"
    </telerik:radtooltipmanager> 
         
         
         
</asp:Content> 

I should explain that line 21 uses a function of our own data layer. My problems are as follows....

1) When i remove the OnAjaxUpdate="OnAjaxUpdate" the page works. It shows a blank tooltip when you click on each photo. However, when I add the OnAjaxUpdate back in it stops working. The tooltips show for half a second then disappear again.

It does this in Firefox and IE and does it when i take all of the code out of the onajaxupdate sub too so the problem doesn't seem to be with the contents of that sub.

2) Because I am now using a radtooltipmanager rather than a radtooltip inside the datalist i have no idea how to change the title of the tooltip to the "Caption" I am getting from the database. When I was using a tooltip in the datalist I just did this...

Title='<%# DataBinder.Eval(Container.DataItem, "Caption") %>'

3) I copied the OnAjaxUpdate Sub from a telerik example but have no idea what it is doing. WHy is ElementID declared and then not used ? And what is args.UpdatePanel.ContentTemplateContainer.Controls.Add ? Does the Tooltip have it's own updatepanel inside it ?


Any help would be really appreciated as I just don't understand the online demos or the documentation. A very simple example would be useful to many others I'd guess.

Thanks, Jon


Svetlina Anati
Telerik team
 answered on 20 Jul 2010
1 answer
92 views

I am attempting to write a extension to the RADEditor to allow for some custom image handling. I have written a COM component to do the custom formatting and just need to pass in the listId and ItemId of the SharePoint list item that is being edited to the method. How would you recommend locating this data from the editor?

Integrating the new tool bar item and javascript code was quite easy and the webUrl I found by:

 

var

 

webUrl = editor._dialogParameters["CurrentWebBaseUrl"];

thanks

 

Stanimir
Telerik team
 answered on 20 Jul 2010
1 answer
188 views
On an initial load of a page I am seeing one call to WebResource.axd be 689K! 

Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl03_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.309.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30afb63f-e6ac-41db-9851-11879733de0a%3a16e4e7cd%3a86526ba7%3af7645509%3a24ee1bba%3a1e771326%3aaa288e2d%3a58366029%3aed16cbdc

The page itself has 8 RadCombos, a Grid, a RadWindow control and an RadHXLHTTPPanel.  I have the Cdn enabled for ScriptManager.  I even have the jscript files local to the site.  For the trace, I see the local jscript files being grabbed.

I tried adding telerik compression and it did not help.

Sebastian
Telerik team
 answered on 20 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?