hello
In Telerik.Web.UI.dll v2010.1.616.35 I can use asyncUpload.UploadedFiles[0].ContentType correctly
but in new versions (I test Telerik.Web.UI.dll v2010.3.1317.35) always return Incorrect (=application/octet-stream) ContentType!
why?
Any solution to solve this problem there?
it's very important for me because i should use new version of Telerik.Web.UI.dll and also i should check ContentType instead of file extension
if users change file extension and send it, result of my work is incorrect and if send a virus or ... my website security is in danger
please help me
_radGrid = new RadGrid
{
ID = "telerikInspections",
DataSource = _siteSpecificAreas,
AutoGenerateColumns = false,
AllowPaging = false,
EnableViewState = true,
AllowSorting = true,
ShowHeader = true,
ShowFooter = true,
ShowStatusBar = false,
GroupingEnabled = false,
ShowGroupPanel = false,
Skin = "Forest"
};
gbc = new GridBoundColumn
{
UniqueName = "CountPendingInspection",
DataField = "CountPendingInspection",
HeaderImageUrl = "/_layouts/images/custom.images/Purple-P-16.png",
ShowSortIcon = false,
HeaderText = "Pending Inspection",
Aggregate = GridAggregateFunction.Sum
};
_radGrid.Columns.Add(gbc);
An error has occurred because a control with id 'Inspections1$telerikInspections$ctl00$ctl02$ctl00$ctl05' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error.
Hi
I have a RADGrid with one button column and rest bound columns as follows;
<
telerik:RadGrid
ID
=
"DocsList"
runat
=
"server"
AllowPaging
=
"True"
GridLines
=
"None"
OnNeedDataSource
=
"DocsList_NeedDataSource"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
>
<
Columns
>
<
telerik:GridBoundColumn
FooterText
=
"Document"
UniqueName
=
"Document"
SortExpression
=
"ContactTitle"
HeaderText
=
"Document"
DataField
=
"Document"
Resizable
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
FooterText
=
"Index"
UniqueName
=
"Index"
HeaderText
=
"Index"
DataField
=
"Index"
Display
=
"false"
>
<
ItemStyle
Width
=
"0px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
FooterText
=
"MediaURL"
UniqueName
=
"MediaURL"
HeaderText
=
"MediaURL"
DataField
=
"MediaURL"
Display
=
"false"
>
<
ItemStyle
Width
=
"0px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
FooterText
=
"View"
ButtonType
=
"ImageButton"
UniqueName
=
"View"
HeaderText
=
"View"
ItemStyle-HorizontalAlign
=
"Center"
HeaderStyle-HorizontalAlign
=
"Center"
CommandName
=
"Select"
DataTextField
=
"CustomerID"
ImageUrl
=
"~/Resources/Images/submit.png"
>
<
ItemStyle
Width
=
"20px"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
I have a few questions;
1. How can I attach an onclick event to the buttons in the button column so when a button in a row is clicked then value of one of the bound columns in the same row is returned?
2. The button images' seems to have an annoying shadow (image1.jpg attached). How can this be removed?
3. When this web page is being viewed in browser and browser window is scaled down the buttons start to crop instead of grid rescaling to allow the button to remain fully visible (image2.jpg attached). How can this be fixed?
Many Thanks
Regards