<
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/";
}
protected void RadAsploayncUd1_FileUploaded(object sender, FileUploadedEventArgs e)
<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> |
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. |
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();
<
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