Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
83 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
92 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
651 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
119 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
0 answers
98 views

Hi,

At the opposite of selecting, droping could concern a folder. But this is not waht we want to do. We only want to allow files.

PS : I don't want to use allowed files extensions property because there are hundreds of extensions

NNou
Top achievements
Rank 1
 asked on 14 Apr 2017
0 answers
77 views

Hi,

I am able to expand/collapse my groups in Rad Grid on client side. What I would like to do is to cancel the expand/collapse in certain situations. For example, if the "Total" amount in my Group row is less than 100, I would like to cancel the expand event.

I know I should be able to do this by the GroupExpanding event - I have hooked that up (using GroupLoadMode = Client), and I can indeed intercept the expand event. However, I am not able to find a way to access the data in the group row I am expanding, to check what the total value is.

Is there a way to do this? I need to do this all client-side.

Basically, cancel the expand event if some value in the group row is not equal to 100.

Thanks

Daniel

Daniel
Top achievements
Rank 1
 asked on 14 Apr 2017
8 answers
174 views

Hi,

I encountered  a problem on IE9. I used AsyncFile Upload control. I needed Manual Upload and Multiple File Selection. I could select only one file in the open file dialog on IE9 and the upload module was IFrame. But On Firefox I could select several files at a time. After I had switched off the Manual Upload feature I could select several files at a time on IE9 and the upload module was Silverlight. What should to do in order the Multiple File Selection feature works on IE9?

Environment: Win7 Ultimate x64 SP1, IIS7, VS2010 SP1, Silverlight 5, Telerik Radcontrols for ASP.NET Ajax Q3 2012  SP2 v.12.3.1308.0

There is my project in the attachment.

Thank you in advance.

start.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Start.aspx.cs" Inherits="FileUploadIE.Start" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="http://localhost:12769/Scripts/jquery-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript" id="telerikClientEvents1">
        function RadAsyncUpload1_FilesSelected(sender, args) {
            var moduleName = sender.get_loadedModuleName();
            $('#moduleName').html('<span> Uploading module: ' + sender.get_loadedModuleName() + ' </span>');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <p id="moduleName">
    </p>
    <div>
        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" ManualUpload="True"
            MultipleFileSelection="Automatic" OnClientFilesSelected="RadAsyncUpload1_FilesSelected">
        </telerik:RadAsyncUpload>
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    </form>
</body>
</html>
 

start.aspx

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace FileUploadIE
{
    public partial class Start : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
    }
}

 web.config

<?xml version="1.0"?>
<configuration>
  <system.web>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <compilation debug="true">
    </compilation>
  </system.web>
  <system.webServer>
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
    </handlers>
  </system.webServer>
</configuration>

 

 

 

Ivan Danchev
Telerik team
 answered on 14 Apr 2017
0 answers
93 views

Hi,

I have put an image on the drop zone and I want the image to disapppear when the file is being dropped so that the text "Drop files here" does not appear on it. Is there any way to do that ?

Note that the file is not already dropped, he is being dropped

NNou
Top achievements
Rank 1
 asked on 14 Apr 2017
1 answer
78 views

Hi,

 

When I compare the FileExplorer (EnableFilteringOnEnterPressed = True) with Windows behavior there is one issue a customer pointed me to.

Try the following scenario:

  1. select a folder on the treeview screen, the items appear;
  2. type a word in the filterbox, remove some characters using cursor select and BACKSPACE, everything OK;
  3. type a word in the Filterbox, remove some characters using cursor select and DELETE, now the dialog appears if you want to delete the complete folder.

One customer had deleted complete folder by hitting OK. Not very clever of him but it can happen.

In the Windows Explorer this behavior is different; after DELETE the characters are just removed from the Searchbox and Search can be performed again.

Marc
Dimitar
Telerik team
 answered on 14 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?