or
RadComboBox can be easily validated against the Text of its items. This is by design.
The control cannot be validated by value out of the box. The combobox is a composite control, its input area being essentially a <
input
type"text" ...> DOM element. The .value property of this DOM element corresponds to the actual text being written inside the textbox. This is
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"RadAsyncUpload1"
OnClientFilesUploaded
=
"filesUploaded"
HttpHandlerUrl
=
"~/AzureHandler.ashx"
MultipleFileSelection
=
"Automatic"
Width
=
"300px"
>
</
telerik:RadAsyncUpload
>
public class AzureHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState
{
protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
{
SampleAsyncUploadResult result = CreateDefaultUploadResult<
SampleAsyncUploadResult
>(file);
SampleAsyncUploadConfiguration sampleConfiguration = configuration as SampleAsyncUploadConfiguration;
string container = null;
if (sampleConfiguration != null)
{
container = sampleConfiguration.ContainerName;
result.ImageID = InsertImage(file, container, sampleConfiguration.MetaTags);
}
// Populate any additional fields into the upload result.
// The upload result is available both on the client and on the server
return result;
}
public int InsertImage(UploadedFile file, string containerName, string metaTags)
{
AzureAcess.UploadToCloud(containerName, file, metaTags);
return 0;
}
}
<
telerik:RadAjaxManagerProxy
runat
=
"server"
ID
=
"AjaxManagerProxy1"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGridAllRequests"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGridAllRequests"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Transparency
=
"0"
Skin
=
"WebBlue"
MinDisplayTime
=
"1000"
EnableAjaxSkinRendering
=
"true"
/>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGridAllRequests"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGridAllRequests"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:Panel
runat
=
"server"
ID
=
"pnlProductDetails"
>
<
telerik:RadComboBox
runat
=
"server"
ID
=
"DdlSelectOption"
AutoPostBack
=
"true"
Width
=
"600px"
ToolTip
=
"Select any option here to view Spending Requests history with different status"
Skin
=
"Hay"
Font-Bold
=
"true"
CausesValidation
=
"false"
ValidationGroup
=
"none"
OnSelectedIndexChanged
=
"DdlSelectOption_SelectedIndexChanged"
>
</
telerik:RadComboBox
>
<
div
class
=
"Scrollgrid"
style
=
"width: 1030px; height: 350px;"
>
<
telerik:RadGrid
ID
=
"RadGridAllRequests"
runat
=
"server"
AllowPaging
=
"true"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"False"
BorderStyle
=
"None"
GridLines
=
"Both"
OnNeedDataSource
=
"RadGridAllRequests_needdatasource"
OnItemDataBound
=
"RadGridAllRequests_ItemDataBound"
OnItemCreated
=
"RadGridAllRequests_ItemCreated"
OnItemCommand
=
"RadGridAllRequests_ItemCommand"
AllowMultiRowSelection
=
"true"
SelectedItemStyle-CssClass
=
"SelectedItem"
Width
=
"100%"
Skin
=
"WebBlue"
>
</
telerik:RadGrid
>
</
div
>
</
asp:Panel
>
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Wed, 25 May 2011 14:09:07 UTC
Message: 'Sys' is undefined
Line: 70
Char: 1
Code: 0
URI: http://localhost:8080/PRWeb/
Message: Object expected
Line: 201
Char: 9
Code: 0
URI: http://localhost:8080/PRWeb/