Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
402 views
Hi ,

With the latest updates of RadAsyncUpload control, it asks for login credentials when a file is selected from browse window. We are using it in SharePoint Site.

This was working previously with earlier version and seems to be broken in the version 2010.2.713.20. When a sip file is selected from the browse window, the control keeps loading and does not complete the loading. 

Sometimes if the page is accessed over domain from another machine, it starts working but thats just sometimes. Its not at all working on same machine.

Its defined this way : 

<telerik:RadAsyncUpload ID="importPackage" runat="server" ControlObjectsVisibility="None" MaxFileInputsCount="1" EnableViewState="true" AllowedFileExtensions="zip" onkeypress="javascript:return false;" Localization-Select="browse" Width="300px" InputSize="45" Skin="Outlook" OverwriteExistingFiles="true" InitialFileInputsCount="1">
</telerik:RadAsyncUpload>

Not sure whats the problem. Can someone help ?  This is quite urgent.

Thanks,
Nutan
Plamen
Telerik team
 answered on 20 Nov 2014
1 answer
81 views
Hi, we have a grid with a RadAsyncUpload in EditFormSettings. Is from approximately 2 weeks that RadAsyncUpload don't work fine.

<telerik:RadGrid ID="RadGrid1" runat="server"
    CellSpacing="0" Culture="it-IT" GridLines="None" DataKeyNames="ID Modulo"
    DataSourceID="SqlDataSource1" AutoGenerateColumns="false" Width="820px" AllowSorting="true"
    OnInsertCommand="RadGrid1_InsertCommand" OnItemCommand="RadGrid1_ItemCommand" OnUpdateCommand="RadGrid1_UpdateCommand"
    Skin="Forest" EnableEmbeddedSkins="False" OnItemDataBound="RadGrid1_ItemDataBound">
    <MasterTableView DataKeyNames="ID Modulo" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom">
        <ItemTemplate>
            <table style="width:800px;">
                <tr>
                    <td style="width: 80px;text-align:left;"><telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" Width="64px" Height="64px" ResizeMode="Fit" DataValue='<%# Eval("Immagine") %>' /></td>
                    <td style="width: 100px;">
                        <div class="fModuli"><%#Eval("tProgressivo")%></div>
                        <div class="fModuli"><%#Eval("tTipo")%></div>
                    </td>
                    <td style="width: 400px;">
                        <b>Descrizione:</b> <%#Eval("tModulo")%><br />
                        <b>Data:</b> <%#Eval("tStamp")%>                                   
                    </td>
                    <td>
                        <table style="width:100%">
                            <tr>
                                <td style="text-align:left;"><asp:LinkButton ID="lnkEdit" runat="server" Text="Modifica" CommandName="Edit"></asp:LinkButton></td>
                            </tr>
                            <tr>
                                <td style="text-align:left;"><asp:LinkButton ID="lnkDelete" runat="server" Text="Elimina" CommandName="Delete" OnClientClick="return confirm('Sei sicuro di volerlo eliminare?')"></asp:LinkButton><asp:LinkButton ID="lnlDomRisp" runat="server" Text="Domande" CommandName="DomRis"></asp:LinkButton></td>
                            </tr>
                        </table>                               
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <Columns>
            <telerik:GridTemplateColumn>
                <HeaderStyle Width="130px" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="Progressivo" DataField="Progressivo" UniqueName="Progressivo">
                <HeaderStyle Width="490px" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn>
                <HeaderStyle Width="200px" />
            </telerik:GridTemplateColumn>
        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <div style="margin-left:15px;">
                    <asp:Panel ID="pnlInsert" runat="server">
                        <div style="height:10px"></div>
                        <table style="width:800px">
                            <tr>
                                <td style="width:200px">Tipo Modulo <asp:DropDownList ID="DDLTipoModulo" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDLTipoModulo_SelectedIndexChanged" DataTextField="Descrizione" DataValueField="ID Tipo Modulo"></asp:DropDownList></td>
                            </tr>
                        </table>
                    </asp:Panel>   
                    <div style="height:10px"></div>
                    <table style="width:800px;">
                        <tr>
                            <td style="width:400px; vertical-align:top;">Descrizione:<br /><asp:TextBox ID="txtDescrizione" runat="server" Text='<%#Bind("tModulo")%>' MaxLength="255" Width="350px"></asp:TextBox></td>
                            <td style="vertical-align:top;"><asp:Panel ID="pnlArticulate" runat="server">Articulate: <a href="../public/moduli/<%=Hash%>/<%#Eval("Articulate")%>" target="_blank"><asp:Literal ID="lArticulate" runat="server" Text='<%#Eval("Articulate")%>'></asp:Literal></a><telerik:RadAsyncUpload ID="rupArticulate" runat="server" AllowedFileExtensions="zip" MaxFileSize="1010485760" MaxFileInputsCount="1" Skin="Forest" EnableEmbeddedSkins="False" Localization-Select="Seleziona" Localization-Cancel="Cancella" Localization-Remove="Rimuovi"></telerik:RadAsyncUpload></asp:Panel><asp:Panel ID="pnlDispensa" runat="server">Dispensa: <a href="../public/moduli/<%=Hash%>/<%#Eval("Dispensa")%>" target="_blank"><asp:Literal ID="lDispensa" runat="server" Text='<%#Eval("Dispensa")%>'></asp:Literal></a><telerik:RadAsyncUpload ID="rupDispensa" runat="server" AllowedFileExtensions="pdf" MaxFileSize="1010485760" MaxFileInputsCount="1" Skin="Forest" EnableEmbeddedSkins="False" Localization-Select="Seleziona" Localization-Cancel="Cancella" Localization-Remove="Rimuovi"></telerik:RadAsyncUpload></asp:Panel></td>
                        </tr>
                    </table>
                    <div style="height:10px"></div>
                    <table style="width:800px;">
                        <tr>
                            <td style="width:150px; vertical-align:top"><asp:Panel ID="pnlProgressivo" runat="server">Progressivo: <asp:TextBox ID="txtProgressivo" runat="server" Text='<%#Bind("Progressivo")%>' MaxLength="3" Width="50"></asp:TextBox><asp:RequiredFieldValidator ID="RFVProgressivo" runat="server" ErrorMessage="Inserire il progressivo" ControlToValidate="txtProgressivo" Text="*"></asp:RequiredFieldValidator><asp:RangeValidator ID="RVProgressivo" runat="server" ErrorMessage="Inserire un numero compreso tra 1 e 100" MaximumValue="100" MinimumValue="1" ControlToValidate="txtProgressivo" Text="*" Type="Integer"></asp:RangeValidator></asp:Panel><asp:Panel ID="pnlPercentualeCorrette" runat="server">% Corrette: <asp:TextBox ID="txtPerCorrette" runat="server" Text='<%#Bind("Percentuale_Corrette")%>' MaxLength="3" Width="50"></asp:TextBox><asp:RequiredFieldValidator ID="TFVPerCorrette" runat="server" ErrorMessage="Inserire la percentuale di domande corrette" ControlToValidate="txtPerCorrette" Text="*"></asp:RequiredFieldValidator><asp:RangeValidator ID="RVPerCorrette" runat="server" ErrorMessage="Inserire un numero compreso tra 1 e 100" MaximumValue="100" MinimumValue="1" ControlToValidate="txtPerCorrette" Text="*" Type="Integer"></asp:RangeValidator></asp:Panel></td>
                            <td style="width:150px; vertical-align:top"><asp:Panel ID="pnlDurata" runat="server">Durata: <asp:TextBox ID="txtDurata" runat="server" Text='<%#Bind("Durata")%>' MaxLength="10"  Width="50"></asp:TextBox><asp:RequiredFieldValidator ID="RFVDurata" runat="server" ErrorMessage="Inserire la durata" ControlToValidate="txtDurata" Text="*"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="REVDurata" runat="server" Text="*" ErrorMessage="Durata non corretta" ControlToValidate="txtDurata" ValidationExpression="\d+"></asp:RegularExpressionValidator></asp:Panel></td>
                            <td style="vertical-align:top;"><asp:Panel ID="pnlnDomande" runat="server">Numero Domande: <asp:TextBox ID="txtNDomande" runat="server" Text='<%#Bind("Domande_Random")%>' MaxLength="3" Width="50"></asp:TextBox><asp:RequiredFieldValidator ID="RFVNDomande" runat="server" ErrorMessage="Inserire il numero di domande" ControlToValidate="txtNDomande" Text="*"></asp:RequiredFieldValidator><asp:RangeValidator ID="REVNDomande" runat="server" ErrorMessage="Inserire un numero compreso tra 1 e 100" MaximumValue="100" MinimumValue="1" ControlToValidate="txtNDomande" Text="*" Type="Integer"></asp:RangeValidator></asp:Panel></td>
                        </tr>
                    </table>
                </div>
                <div style="height:10px"></div>
                <div style="text-align:center;">
                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Inserisci" : "Aggiorna" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' ></asp:Button> <asp:Button ID="btnCancel" Text="Annulla" runat="server" CausesValidation="False" CommandName="Cancel" ></asp:Button>
                </div>
                <div style="height:10px"></div>
                <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="true" ShowSummary="false" />
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>


An error was raised

ReferenceError: xhtml is not defined
debugger eval code
Line 1

in attached the error debug.

How is possible solve the problem.
Peter Filipov
Telerik team
 answered on 20 Nov 2014
2 answers
155 views
Hi,

I used this sample http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx to get a Custom Dialog for the Editor. On that Dialog page I added a RadButton. This RadButton has a OnClientClicked Event with a Javascript function (Dialog return). The Problem is that this function gets fired on PageLoad (Dialog\RadWindow). If i use a normal ASP Button with "OnClientClick" all works fine. How is it possible to have the JavaScript function fired only on the Click event with a RadButton.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dialog.aspx.cs" Inherits="TelerikSample.Dialog" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" 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>
</telerik:RadScriptManager>
<div>
<telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClientClicked="insertLink('IdOfList')"></telerik:RadButton>
<%--<asp:Button ID="Button2" runat="server" Text="ASPButton" OnClientClick="insertLink('IdOfList')" ></asp:Button>--%>
</div>
</form>
</body>
</html>


<script type="text/javascript">

function getRadWindow() {
if (window.radWindow) {
return window.radWindow;
}
if (window.frameElement && window.frameElement.radWindow) {
return window.frameElement.radWindow;
}
return null;
}

function insertLink(Id) //fires when the Insert Link button is clicked
{
getRadWindow().close(Id); //use the close function of the getRadWindow to close the dialog and pass the arguments from the dialog to the callback function on the main page.
}
</script>


Thanks,
Hermann
Hermann
Top achievements
Rank 1
 answered on 20 Nov 2014
0 answers
75 views
I'm trying to export Kendogrid data to excel file.

The exported excel file has all the space removed between the words, which is an issue.

Below is the sample page where I tried to replicate the same.
http://dojo.telerik.com/EtUj/6


Please help if anyone has any solution or workaround.
Thanks
Tanmayee
Top achievements
Rank 1
 asked on 20 Nov 2014
3 answers
83 views
hi

which find control for example, DropDownTree or ....
, in RadListView1_ItemEditing



i try below code,but give error.







  protected void RadListView1_ItemEditing(object sender, RadListViewCommandEventArgs e)

    {

RadListViewEditableItem editedItem = (RadListViewEditableItem)e.ListViewItem;



 RadTextBox txtSubject =(RadTextBox)editedItem.FindControl("txtSubject");



txtSubject .Text="hi";



}

please help me.

thanks

Pavlina
Telerik team
 answered on 19 Nov 2014
3 answers
104 views
I have a RadTabStrip containing some tabs and ScrollChildren is set true. Whenever there is a Multiline TextBox in any of the tabs, after focusing the Textbox or writing something on it, if I click on any of the tabs, the RadTabStrip disappears. It again shows after a single click anywhere on the screen! 
N.B. If I set ScrollChildren to false or make the TextBox singleline, this unexpected behavior vanishes! Have someone faced this weird error before? What is the way around!
Nencho
Telerik team
 answered on 19 Nov 2014
0 answers
128 views
RadTextBox textchanged event is firing before i finish typing the text in the textbox.
SO i am trying to use onblur clientside event. After user types the text there is some server side db call will be made.
How to accomplish this?

My code:

  <telerik:RadTextBox ID="txtPurchaseOrder" AutoPostBack="true"  runat="server" EmptyMessage="" MaxLength="30" style="text-transform: uppercase;" >
              <ClientEvents OnKeyPress="OnKeyPress" OnBlur="Blur" />      
              </telerik:RadTextBox>
function Blur(sender, eventArgs) {
          //Need to call server side method POChange() from here,  PageMethods.POChange(); not working
        }


code-behind:
 protected void POChange()
        {
            if (txtPurchaseOrder.Text != "")
            {
                string strSoOrder = BookingData.CheckPONumer(txtPurchaseOrder.Text);
                if (strSoOrder != null || strSoOrder != "")
                {
                    txtPurchaseOrder.Attributes.Add("onblur", "javascript:return confirm('The Purchase Order used is the same used on previous SO# do you want to continue?');");
                }
            }
        }
Neetha
Top achievements
Rank 1
 asked on 19 Nov 2014
0 answers
275 views
RadTextBox textchanged event is firing before i finish typing the text in the textbox.
SO i am trying to use onblur clientside event. After user types the text there is some server side db call will be made.
How to accomplish this?

My code:

  <telerik:RadTextBox ID="txtPurchaseOrder" AutoPostBack="true"  runat="server" EmptyMessage="" MaxLength="30" style="text-transform: uppercase;" >
              <ClientEvents OnKeyPress="OnKeyPress" OnBlur="Blur" />      
              </telerik:RadTextBox>
function Blur(sender, eventArgs) {
          //Need to call server side method POChange() from here,  PageMethods.POChange(); not working
        }


code-behind:
 protected void POChange()
        {
            if (txtPurchaseOrder.Text != "")
            {
                string strSoOrder = BookingData.CheckPONumer(txtPurchaseOrder.Text);
                if (strSoOrder != null || strSoOrder != "")
                {
                    txtPurchaseOrder.Attributes.Add("onblur", "javascript:return confirm('The Purchase Order used is the same used on previous SO# do you want to continue?');");
                }
            }
        }
Neetha
Top achievements
Rank 1
 asked on 19 Nov 2014
0 answers
256 views
RadTextbox textchanged event is firing before i complete typing the text in the textbox.
So I am trying onBlur client event, but i need the functionlity in server side. How do i accomplish it ?

 <telerik:RadTextBox ID="txtPurchaseOrder" AutoPostBack="true" runat="server" EmptyMessage="" MaxLength="30" style="text-transform: uppercase;" >
              <ClientEvents OnKeyPress="OnKeyPress" OnBlur="Blur" />      
              </telerik:RadTextBox>

<script> function Blur(sender, eventArgs) {
            // need to call POChange method, pagemethods.POChange not working
        }
</script>

code-behind :

 protected void POChange()
        {
            if (txtPurchaseOrder.Text != "")
            {
                string strSoOrder = BookingData.CheckPONumer(txtPurchaseOrder.Text);
                if (strSoOrder != null || strSoOrder != "")
                {
                    txtPurchaseOrder.Attributes.Add("onblur", "javascript:return confirm('The Purchase Order used is the same used on previous SO# do you want to continue?');");
                }
            }
        }

How to get this working?
Neetha
Top achievements
Rank 1
 asked on 19 Nov 2014
2 answers
90 views
Hello,

I'm using a RadGrid in an user control and for each different datasource I create columns. The columns I'm creating also use the filter feature.

The only problem is that the filters, in some cases, are small or bigger compared to the column it's on.

I mean, suppose a column have 200px, sometimes the filter have 50px or 300px. This behavior is pretty strange... Is there a way to make the filters have the same size as the columns?
 
Also, the columns allow resizing so another problem is that the filters have a fixed size. Can they be configured to have a dynamic size like the column it is in?
romulo~
Top achievements
Rank 1
 answered on 19 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?