Dim raditem1 As New RadComboBoxItem
Dim raditem2 As New RadComboBoxItem
Dim raditem3 As New RadComboBoxItem
Dim raditem4 As New RadComboBoxItem
If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then
Dim txtuserName As TextBox = DirectCast(item.FindControl("txtuserName"), TextBox)
Dim txtpassword As TextBox = DirectCast(item.FindControl("txtpassword"), TextBox)
Dim lstbLocations As ListBox = DirectCast(item.FindControl("lstbLocations"), ListBox)
RadAjaxManager1.AjaxSettings.AddAjaxSetting(txtuserName, lstbLocations)
END IF
http://www.whitehouse.gov/
Thanks,
Hong
Hi,
Currently I am using RadNumericTextBox for accepting decimal values. I need to set the MaxValue,MinValue and Precision which works fine with RadNumericTextBox.
However there is a need to set the masking for the numbers. The mask can be of any format. Few examples for the possible number format are
0 --> Displays numbers without any further formatting, for example: 1234.
#,##0 --> Formats numbers with the thousands separator, for example: 1,234.
#,##0;(#,##0) --> Formats numbers with the thousands separator, and places negative numbers in parentheses. For example:
• 1234 appears as 1,234
• -1234 appears as (1,234)
Also the masking is for Display purpose only and when I fetch the data for saving, I need only the values without any formatting applied on it.
Since the display masking is dynamic and I cannot enforce the same using DecimalSeperator, GroupSeperator and Precision property of the RadNumericTextBox
Is there a way to achieve this masking in RadNumericTextBox similar to what we have in radmaskedtextbox?
Conversely, can I achieve all the above said (maxvalue, minvalue and precision including) in radmaskedtextbox?
| <script type="text/javascript"> |
| function RadDockClientCommand(sender, eventArgs) { |
| alert('RadDockClientCommand'); |
| if (eventArgs.Command.get_name() == "Close") { |
| var isClosed = sender.get_closed(); |
| sender.set_closed(!isClosed); |
| } |
| } |
| function ShowHideRadDock(controlID) { |
| alert('In ShowHideRadDock'); |
| var dock = $find('RadDock1'); |
| var isClosed = dock.get_closed(); |
| dock.set_closed(!isClosed); |
| } |
| </script> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"> |
| </telerik:RadScriptManager> |
| <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="javascript:ShowHideRadDock('RadDock1');">ShowHideRadDock1</asp:HyperLink> |
| <br /> |
| <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="javascript:ShowHideRadDock('RadDock2');">ShowHideRadDock2</asp:HyperLink> |
| <br /> |
| <telerik:RadDockLayout ID="RadDockLayout1" runat="server"> |
| <telerik:RadDock ID="RadDock1" runat="server" Skin="Telerik" Width="300px" Left="50px" |
| CloseText="chiudi" BackColor="#a79c00" CssClass="RadDockPostIt"> |
| <Commands> |
| <telerik:DockCommand Name="Close" Text="Chiudi" OnClientCommand="RadDockClientCommand" |
| CssClass="rdClose" /> |
| </Commands> |
| <ContentTemplate> |
| My Content RadDock1 |
| </ContentTemplate> |
| </telerik:RadDock> |
| <telerik:RadDock ID="RadDock2" runat="server" Skin="Telerik" Width="300px" Left="50px" |
| Top="120px" CloseText="chiudi" BackColor="#a79c00"> |
| <Commands> |
| <telerik:DockCommand Name="Close" Text="Chiudi" OnClientCommand="RadDockClientCommand" |
| CssClass="rdClose" /> |
| </Commands> |
| <ContentTemplate> |
| My Content RadDock2 |
| </ContentTemplate> |
| </telerik:RadDock> |
| </telerik:RadDockLayout> |
| </form> |
| </body> |
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LaunchPage.aspx.cs" Inherits="SearchDesk.LaunchPage" %>
<!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 id="Head1" runat="server">
<title></title>
</head>
<body>
banner : User ID :
<asp:Label ID="lblUserID" runat="server" Text=""></asp:Label>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<p>
</p>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
onneeddatasource="RadGrid1_NeedDataSource" onsortcommand="RadGrid1_SortCommand"
onupdatecommand="RadGrid1_UpdateCommand" Width="585px">
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
<MasterTableView DataKeyNames="SearchID">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<NoRecordsTemplate>
Currently no open searches.....
</NoRecordsTemplate>
<Columns>
<telerik:GridBoundColumn DataField="SearchName" HeaderText="Search Name"
SortExpression="SearchName" UniqueName="SearchName">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="StatusName" HeaderText="Search Status"
SortExpression="StatusName" UniqueName="StatusName">
<ItemTemplate>
<asp:Label ID="StatusNameLabel" runat="server" Text='<%# Eval("StatusName") %>'></asp:Label>
</ItemTemplate>
<FilterTemplate>
<telerik:RadComboBox ID="cboFilterStatus" Runat="server"
ondatabinding="cboFilterStatus_DataBinding" DataTextField="SearchStatusName"
DataValueField="SearchStatusName" AutoPostBack="True"
onselectedindexchanged="cboFilterStatus_SelectedIndexChanged"
ondatabound="cboFilterStatus_DataBound" EnableAutomaticLoadOnDemand="True">
</telerik:RadComboBox>
</FilterTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="DateOpened" HeaderText="Date Opened"
SortExpression="DateOpened" UniqueName="column1">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Age" HeaderText="Age" SortExpression="Age"
UniqueName="column">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
<GroupingSettings CaseSensitive="False" />
</telerik:RadGrid>
<asp:LinkButton ID="linkNew" runat="server">Create New Search</asp:LinkButton><br />
<asp:LinkButton ID="linkAdmin1" PostBackUrl="Utils/ChangeUser.aspx" runat="server">Change User</asp:LinkButton>
<br />
<asp:LinkButton ID="linkAdmin2" runat="server">Admin 2</asp:LinkButton>
</form>
</body>
</html>