RadNumericTextBox txtCostBasis = dataItem.FindControl("txtCostBasis") as RadNumericTextBox;
txtCostBasis.Type = NumericType.Currency;
txtCostBasis.NumberFormat.DecimalDigits = 2;
txtCostBasis.NumberFormat.DecimalSeparator = ".";
txtCostBasis.NumberFormat.GroupSeparator = ",";
txtCostBasis.NumberFormat.GroupSizes = 3;
txtCostBasis.NumberFormat.NegativePattern = "$ -n";
txtCostBasis.NumberFormat.PositivePattern = "$ n";
txtCostBasis.Culture = new CultureInfo("en-US");
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; .NET4.0C; .NET4.0E)
Timestamp: Wed, 22 Dec 2010 14:14:10 UTC
<
asp:TextBox ID="DateTextBox" runat="server" Width="80" autocomplete="off" /><br /><br />
<asp:Panel ID="Panel1" runat="server" CssClass="popupControl">
<table style="width:310px;">
<tr>
<td style="white-space:nowrap;width:200px;vertical-align:top;">
Header Colour:
</td>
<td>
<telerik:RadColorPicker runat="server" ID="RadColorHeader" PaletteModes="All"
SelectedColor="98, 108, 137">
</telerik:RadColorPicker>
</td>
</tr>
</table>
</asp:Panel>
<ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server"
TargetControlID="DateTextBox"
PopupControlID="Panel1"
Position="Right" />
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestForm.aspx.cs" Inherits="TestForm" %>
<!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
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ScriptManager
runat
=
"server"
ID
=
"sm"
/>
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"ram"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"chkBox"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlAjaxHandle"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:CheckBox
runat
=
"server"
ID
=
"chkBox"
Text
=
"Show"
AutoPostBack
=
"true"
/>
<
asp:Panel
runat
=
"server"
ID
=
"pnlAjaxHandle"
>
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"upload"
/>
</
asp:Panel
>
<
asp:Button
runat
=
"server"
ID
=
"button"
Text
=
"Submit"
/>
</
div
>
</
form
>
</
body
>
</
html
>
public
partial
class
TestForm : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
upload.Visible = chkBox.Checked;
}
}
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"Apply"
Skin
=
"Windows7"
Width
=
"150px"
CssClass
=
"ie7buttondist"
>
<
Icon
PrimaryIconUrl
=
"~/Images/Apply14.gif"
PrimaryIconWidth
=
"14px"
PrimaryIconHeight
=
"14px"
PrimaryIconLeft
=
"20px"
PrimaryPressedIconUrl
=
"~/Images/Apply14.gif"
PrimaryHoveredIconUrl
=
"~/Images/Apply14.gif"
/>
</
telerik:RadButton
>