Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
1.4K+ views
before we start I apologize for my English.

I have:
<telerik:RadAsyncUpload ID="RadAsyncUpload1"  AllowedFileExtensions="JPG,gif,png,jpg,tif,tiff" MaxFileInputsCount="3"  OnClientValidationFailed="OnClientValidationFailed"   OnFileUploaded="RadAsploayncUd1_FileUploaded"  runat="server" ChunkSize="0" Culture="it-IT" PostbackTriggers="pulsante"></telerik:RadAsyncUpload>
<asp:Button  runat="server" ID="pulsante" Text="Aggiorna profilo"  OnClick="Button1_Click" /> 

//and in the code:


protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
        {
            RadAsyncUpload1.TargetFolder = "~/App_CProfili/ImgProfili/";
          
           }


So it works, but if I change the file name tells me that the file 'App_Data\RadUploadTemp\1378131589339001.JPG'.
 was not found". For example, if I load three files are loaded only two and then goes into error


 This is the code that produces the error
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
{           
 e.File.SaveAs(Server.MapPath(Path.Combine(RadAsyncUpload1.TargetFolder, e.File.GetNameWithoutExtension() + User.Identity.Name  + e.File.GetExtension())));
}
           
Nirosha
Top achievements
Rank 1
 answered on 18 Apr 2017
1 answer
49 views
hi, is there any way to prevent prevent “Backspace” button from clearing selected item. because currently when I clear selection than click anywhere in the page, the selected item is not recovered and get lost.

So I need to get it back or at the worst case to prevent backspace from clearing selection     
NNou
Top achievements
Rank 1
 answered on 18 Apr 2017
10 answers
399 views
Hi,

I have a rad grid bound to a linq datasource.
The grind contains a template row with a RadNumericTextBox.

It runs well in the local webdev server but on IIS 6 it fires an error.
Prior the update to Q1 09 it made no problems.

Details:
If I define the thing like this
<telerik:RadNumericTextBox runat="server" ID="neNumValues" MinValue="1" MaxValue="30" DbValue='<%# Bind("NumItems") %>' NumberFormat-DecimalDigits="0" Width="60px" ShowSpinButtons="True" ShowButton="False" DataType="System.Int32">  
                        </telerik:RadNumericTextBox> 
I get the following error
Ausnahmeinformation:  
    Ausnahmetyp: System.Web.HttpParseException  
    Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
 
Information zu interner Ausnahme (Ebene 1):  
    Ausnahmetyp: System.Web.HttpParseException  
    Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
 
Information zu interner Ausnahme (Ebene 2):  
    Ausnahmetyp: System.Web.HttpException  
    Ausnahmemeldung: Objekt des Typs System.Type kann nicht von seiner Zeichenfolgendarstellung System.Int32 für die DataType-Eigenschaft erstellt werden.  
 
This means in english something like it can't convert the string System.Int32 to a System.Type

If I remove the RadNumericTextBox everything works fine.
Even a GridNumeric works.
But this is not usefull for me, since (as you see) I need to ensure that the value is an integer between 1 and 30.
Currently I help me with a validator - but I would preffere to further use the RadNumericTextBox.

The strange thing for me is, that it runs at the integrated webserver and makes the problem only at the server (W2k3 IIS6)!

Regards

Manfred
Premcoumar
Top achievements
Rank 1
 answered on 17 Apr 2017
8 answers
567 views
is it possible to export like so? I am getting an error RadGrid must be databound before exporting.

I tried moving the export code to the onDataBound 
        ReportData.DataBound += new EventHandler(ReportData_DataBound);
but it is still giving me the same error even though I can see that the grid has 2394 items.

thanks
RadGrid ReportData = new RadGrid();
 
ReportData.DataSource = datasource
ReportData.DataBind();
 
ReportData.ExportSettings.OpenInNewWindow = true;
ReportData.ExportSettings.ExportOnlyData = true;
ReportData.ExportSettings.IgnorePaging = true;
ReportData.ExportSettings.FileName = ReportName.Replace(" ", "_") + "_" + DateTime.Now.Month.ToString() + "_" + DateTime.Now.Day.ToString() + "_" + DateTime.Now.Year.ToString();
ReportData.MasterTableView.ExportToExcel();
Eyup
Telerik team
 answered on 17 Apr 2017
1 answer
152 views
Is there any control or solution for something like Feedback chat ? So users can address questions, and get answers on them realtime.
I found something usefull here : http://developer.telerik.com/featured/whats-the-buzz-a-real-time-chat-room-with-telerik-ui-and-signalr/
but that not really what I need.
Marin Bratanov
Telerik team
 answered on 17 Apr 2017
0 answers
87 views
Our application developed with Asp.NET 4.5 and Bootstrap3 Telerik version 2015.1.310.40. When mouse over on radwindow main page UI getting collapsed. This issues happening only on IE9. Kindly help me. Thanks in advance.
vaithyanathan
Top achievements
Rank 1
 asked on 17 Apr 2017
15 answers
2.3K+ views
I'm trying to create a download link in a RadGrid. What is missing?
How can I get this to work?
Unless someone has a different solution.
Thank you for your help.
Mike
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">
            <MasterTableView autogeneratecolumns="False" datakeynames="id" datasourceid="SqlDataSource1">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
 
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
 
                <Columns>
                    <telerik:GridButtonColumn CommandName="download_file" Text="Download" UniqueName="Download" HeaderText="Download"></telerik:GridButtonColumn>
                    <telerik:GridBoundColumn DataField="id" DataType="System.Int32" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="file_name" FilterControlAltText="Filter file_name column" HeaderText="file_name" SortExpression="file_name" UniqueName="file_name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="file_url" FilterControlAltText="Filter file_url column" HeaderText="file_url" SortExpression="file_url" UniqueName="file_url">
                    </telerik:GridBoundColumn>
                </Columns>
 
            <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
            </EditFormSettings>
            </MasterTableView>
 
            <FilterMenu EnableImageSprites="False"></FilterMenu>
 
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
        </telerik:RadGrid>
protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
         
 
        if (e.CommandName == "download_file")
        {
            string filename=e.CommandArgument.ToString();
            string path=MapPath("~/files/" + filename);
            byte []bts=System.IO.File.ReadAllBytes(path);
            Response.Clear();
            Response.ClearHeaders();
            Response.AddHeader("Content-Type", "Application/octet-stream");
            Response.AddHeader("Content-Length",bts.Length.ToString());
            Response.AddHeader("Content-Disposition","attachment; filename=" + filename);
            Response.BinaryWrite(bts);
            Response.Flush();
            Response.End();
        }
    }

Marin Bratanov
Telerik team
 answered on 17 Apr 2017
0 answers
93 views

I am using column filter with FilterDelay, when i key in a word, letter by letter,  the grid results narrows down the result accordingly when i press a letter.

However, when i press "Backspace" the results does not grow back to the initial results.

Eg:

"C" - shows 10 rows
"Co" - shows 6 rows
"Con" - shows 2 rows

When I press "backspace"

"Co" - still showing 2 rows instead of 6.

How can i trigger the search results when "backspace" is pressed?

WP
Top achievements
Rank 1
 asked on 17 Apr 2017
56 answers
664 views

ADMIN UPDATE

This is a regression issue in IEhttps://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295665/

Cast your vote by pressing the "+Me Too" button and encourage your end users to do the same if they have an account with Microsoft.

The problem with the RadWindow appearance will be fixed when Microsoft roll out a fix.

Cumulative updates through Windows Update should resolve the issue. First reported updates:

Fault condition description:

  • IE is in some form of compatibility mode (IE8, IE9 or IE10), usually via an  meta tag. The issue does not manifest in standards (Edge) mode. Add a meta tag to enforce it.
  • RadWindow is in Classic RenderMode. It uses tables to render. Using the Lightweight RenderMode should alleviate the problem.
  • The end user machine has the KB4012204 update installed. Other updates that have been reported as associated with this issue: MS17-006, KB4012215, KB2952664, KB3216755, KB4013429, KB3218362

END UPDATE

The recent Microsoft Windows Update seems to be causing issues for us with our .

https://support.microsoft.com/en-us/help/4012204/ms17-006-security-update-for-internet-explorer-march-14-2017

Attached is an example of what's happening since this update was pushed down.

Any suggestions on a quick fix?

Clients are IE 11 using Compatibility mode (v8).

 

 

JARROD R
Top achievements
Rank 1
 answered on 15 Apr 2017
2 answers
122 views

Hi,

I am using the RadTreeList (Ajax) and trying to get a client-side click event for a left click on the header. This does not appear to be directly supported by the control.  Is there an indirect way to get a client-side click event for the header row and determine the column of the event?

 

Thanks

Paul
Top achievements
Rank 1
 answered on 15 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?