Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views
Hi All,

How do we know when the upload is complete. My program takes in a file and converts it into a pdf file after upload and then i need to stream it back to the browser. I am not sure how to track the upload complete on the browser side so that i can initiate another page after the upload to stream the pdf. i would like to do this initiation through a javascript, i am not sure which event i should track on the client side to do this soon after the upload is complete.

thanks
Sunil
Sunil Ramu
Top achievements
Rank 1
 asked on 12 Nov 2009
1 answer
189 views
  • I have a user Control containing this:

 

 

<%@ Register Src="~/uc1.ascx" TagName="test" TagPrefix="uc1" %>   
<%@ Register Src="~/uc2.ascx" TagName="test"TagPrefix="uc2" %> 
<uc1:test ID="uc1" runat="server" />   
<uc2:test ID="uc2" runat="server" />   
 
 

 

 

Code Behind:

 

   protected void Page_Load(object sender, EventArgs e)   
     {  
        RadAjaxManagerProxy AjaxManager = (RadAjaxManagerProxy)this.FindControl("RadAjaxManagerProxy1");   
         AjaxManager.AjaxSettings.AddAjaxSetting(uc1.FindControl("Button1"),uc2.FindControl("TextBox1"));   
   
     }  
 
 
 
   
 

 

 

  • User Control 1 is

    

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc1.ascx.cs" Inherits="App_TelusPHR_uc1" %>   
 
    <asp:Button ID="Button1" runat="server" Text="Button" />   
 

 

 

User Control 2 is

  

  <%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc2.ascx.cs" Inherits="App_TelusPHR_uc2" %>   
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>   
 

 

 

 

 

  code Behind

 

   public static int count = 0;   
 
    protected void Page_Load(object sender, EventArgs e)   
    {  
    count++;  
    TextBox1.Text = count.ToString();  
    }  
 
 

 


User control 2 is never refreshed..... any idea?

 

 

Pavlina
Telerik team
 answered on 12 Nov 2009
1 answer
128 views
Hi, I'm having a problem with a Grid, the thing is that I automatically expand the items and save the expand state when an update is done...but sometimes brings me this error:
Specified argument was out of the range of valid values.
Parameter name: ItemHierachicalIndex
I got the code to keep the state of the grid, from a telerik forum; this is where the page marks me the error

 

Protected Sub RadGrid1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.DataBound

 

 

'Expand all items using our custom storage

 

 

Dim indexes As String() = New String(Me.ExpandedStates.Keys.Count) {}

 

 

Me.ExpandedStates.Keys.CopyTo(indexes, 0)

 

 

Dim arr As New ArrayList(indexes)

 

 

'Sort so we can guarantee that a parent item is expanded before any of

 

 

'its children

 

arr.Sort()

 

For Each key As String In arr

 

 

If key Is Nothing Then

 

 

Else

 

 

Dim value As Boolean = DirectCast(Me.ExpandedStates(key), Boolean)

 

 

If value Then

 

------------------------>>>>>> RadGrid1.Items(key).Expanded =

True  <<<<<<<---------------------

 

 

End If

 

 

End If

 

 

Next

 

 

End Sub

 

Sebastian
Telerik team
 answered on 12 Nov 2009
7 answers
200 views
I'm having an issue with the RadStylesheetManager not combining the css files on AJAX requests.  The RadStylesheetManager works properly on the intial page request, but on AJAX requests I see individual WebResource requests to WebResource.axd and not Telerik.Web.UI.WebResource.axd.  The RadScriptManager residing on the same page works as expected during AJAX requests combining the script files for the controls and using the Telerik handler.  I've tested this with both Fiddler and Firebug and tried this with both IE and FireFox using both Q3 2008 and the latest nightly build of Q2 2009.

Any help would be appreciated.

Thanks
Matt
T. Tsonev
Telerik team
 answered on 12 Nov 2009
1 answer
153 views
Hi,

When predefining content in a TextArea you get an Unspecified error when hitting Enter.
To reproduce this:
  1. Open Internet Explorer 8 (other versions seem to have the same problem, but I cannot confirm. Firefox apparentally does not allow to predefine content in a Textarea inside the RadEditor).
  2. Go to a website with a RadEditor, eg: http://demos.telerik.com/aspnet-ajax/editor/examples/autosave/defaultcs.aspx
  3. Add a Textarea element.
  4. Hit <Enter> (given that the caret is in the Textarea, otherwise doubleclick on the Textarea before hitting <Enter>)
  5. A messagebox pops up stating Unspecified error

I know that using <Shift> + <Enter> does the trick. But is there a way to either accept the <Enter> as a newline or display a custom error message?

Thanks in advance,
Dries
Rumen
Telerik team
 answered on 12 Nov 2009
1 answer
79 views
Hello,
I've been trying to do something that has a problem.

I have a RadGrid with a nestedviewtemplate. Inside this newstedviewtemplate i have 3 tabs with another radgrid (1st tab), several control (2nd tab) and a repeater (3rd tab).

I've been trying by client side, when i change the values in the 2nd tab (several controls) I need to place a checkbox with checked=true. My problem has been trying to do this when changing the selected date in a RadDatePicker.

Mensagem: O objecto não suporta esta propriedade ou método
Linha: 6
Caráct: 29366
Código: 0
URL: http://localhost/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager2_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3apt-PT%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3apt-PT%3ad2d891f5-3533-469c-b9a2-ac7d16eb23ff%3ae330518b%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ac8618e41%3aaa288e2d%3aed16cbdc%3a58366029%3a874f8ea2%3a8bd1850e%3a50790754%3ac01e561a

The line of code of when I try to change the attributes in the server side (when executing the expandall command in the first radgrid) is this:

rDatePickerInicial.ClientEvents.OnDateSelected = "ChangeCheckBox('" + ckChanges.ClientID + "')";

The code for asp.net textbox is:
 

txtDescricaoPt.Attributes.Add(

"onkeypress", "javascript:ChangeCheckBox('" + ckChanges.ClientID + "')");

 txtDescricaoGb.Attributes.Add(

 

"onkeypress", "javascript:ChangeCheckBoxCheckBox('" + ckChanges.ClientID + "')");

 

 

and this works.

My only problem has to do with Telerik controls.

Sebastian
Telerik team
 answered on 12 Nov 2009
1 answer
128 views
Hello
I want to add image in rad editor like Gmail .
in gmail user add image into editor ,editor first of all upload image file in google server then show image to user by tag img when
user click send email ,image in editor embed in email .
how can i do that?
thanks a lot.
Rumen
Telerik team
 answered on 12 Nov 2009
3 answers
427 views
Hello,

I would like to create feeling that grid has always at least 10 rows visible, even if the datasource contains only 3 data rows.
For that i need to able to add few fictional empty rows just to create filling effect.

Please advise how it is possible.

Thanks,
Shimon
Carl
Telerik team
 answered on 12 Nov 2009
0 answers
145 views

Hello, this is my code for bind a dropdowlist in ItemTemplate that has a Bind("field")

it's work fine, but in Edit Mode one time in     
list.DataSource = dsDropDown
give the error:

    {"Object reference not set to an instance of an object."}
    
Then in I'm using a catch for this error, and all is fine.

Do you know a solution for don't use the catch?

  Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated

    If (TypeOf e.Item Is GridDataItem AndAlso e.Item.IsDataBound) Then

      Try
        Dim dsDropDown As New DataSet()
        OleDbCnn = New Data.OleDb.OleDbConnection(Session("CONNECT_DBS"))
        Dim item As GridDataItem = e.Item
        Dim list As DropDownList = item.FindControl("DDL_AREA_GEOGRAFICA_NAME")
        OleDbSql = Area_Geografica_Code()
        Dim OleDbDad As New Data.OleDb.OleDbDataAdapter
        OleDbDad = New Data.OleDb.OleDbDataAdapter(OleDbSql, OleDbCnn)
        OleDbDad.Fill(dsDropDown)
        list.DataSource = dsDropDown
        list.DataTextField = "NAME"
        list.DataValueField = "CD_CODE"
      Catch ex As Exception
        ex.Message.ToString()
      End Try

    End If 

  End Sub

Thanks for any help

rema43001
Top achievements
Rank 1
 asked on 12 Nov 2009
1 answer
214 views

Message from webpage :
Web.config registration missing!
The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction
-------------------------------------------------------------------------------------------------------------------------------------------
500 - Internal server error.
----------------------------------------------------------------------------------------------------------------------------------------
I got this error at a time of click on Image Manager in IIS 7.

this thing is working fine in IIS 5.

My ASPX Page Code

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<

 

telerik:RadEditor ID="telerik1" runat="server" Width="100%" CssClass="editorcontent" AllowScripts="True" Height="600px" DialogHandlerUrl="" ToolbarMode="Default">

 

 

<ImageManager ViewPaths="~/App_Themes/Default/images" UploadPaths="~/App_Themes/Default/images" DeletePaths="~/App_Themes/Default/images" />

 

 

<DocumentManager ViewPaths="~/App_Themes/Default/images" UploadPaths="~/App_Themes/Default/images" DeletePaths="~/App_Themes/Default/images" />

 

</

 

telerik:RadEditor>

 

 

 


My web.config.

 

<

 

system.web>

 

<

 

pages theme="Default">

 

<

 

controls>

 

<

 

add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

</

 

controls>

 

</

 

pages>

 

<

 

httpModules>

 

<

 

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

</

 

httpModules>

 

<

 

httpHandlers>

 

<

 

remove verb="*" path="*.asmx"/>

 

<

 

add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

 

<

 

add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

 

<

 

add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

 

<

 

add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>

 

<

 

add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>

 

<

 

add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI"/>

 

<

 

add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>

 

<

 

add path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>

 

</

 

httpHandlers>

 

<

compilation debug="true">

 

<

 

assemblies>

 

<

 

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.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

 

<

 

add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

<

 

add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

 

</

 

assemblies>

 

</

 

compilation>

 

</

system.web>

 

<

 

system.webServer>

 

<

 

validation validateIntegratedModeConfiguration="false"/>

 

<

 

modules>

 

<

 

add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule"/>

 

</

 

modules>

 

<

 

handlers>

 

<

 

remove name="WebServiceHandlerFactory-Integrated"/>

 

<

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

 

<

 

add name="Telerik.Web.UI.DialogHandler" verb="*" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>

 

</

 

handlers>

 

</

 

system.webServer>

 

 

 

Rumen
Telerik team
 answered on 12 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?