<
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();
}
}
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?
ADMIN UPDATE
This is a regression issue in IE: https://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:
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).
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
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
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
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>
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
Hi,
When I compare the FileExplorer (EnableFilteringOnEnterPressed = True) with Windows behavior there is one issue a customer pointed me to.
Try the following scenario:
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