
I have a large text input area where users will query information from a database. I want to restrict input to only alphanumeric keys to help prevent SQL injection. I was using a RadTextBox with the multiline attribute set and I had attached the jQuery script alphanumeric to the field, but it disabled the browser context menu. I decided to give the RadEditor a try since it allows for custom context menus and for a toolbar. The jQuery alphanumeric plugin is very nice and if there is any way to attach the script to the content area of the RadEditor, I would appreciate it. If there is another way to achieve the same effect, let me know. Thanks.
This is the basic syntax for applying the alphanumeric filter to a textbox:
| <script type="text/javascript"> |
| $('.textbox').alphanumeric({ allow: "_-* " }); |
| </script> |
Then you would have an element such as a RadTextBox or a plain TextBox and apply '.textbox' to the the CssClass attribute.

| .RadMenu_ICR .rmLink:hover .rmText, |
| .RadMenu_ICR .rmExpanded |
| { |
| background-color: #d5ecf1 !important; |
| font: normal 12px/23px "Segoe UI", Arial, sans-serif; |
| color: #003366; |
| } |
to get borders, I am adding:
border-right:1px solid #336699;
border-left:1px solid #336699;
what else do I need to do?

| protected void IndicationsExport(object sender, EventArgs e) |
| { |
| gridIndications.MasterTableView.Columns.FindByUniqueName("EditColumn").Visible = false; |
| gridIndications.MasterTableView.Columns.FindByUniqueName("DeleteColumn").Visible = false; |
| gridIndications.MasterTableView.ExportToExcel(); |
| gridIndications.MasterTableView.Columns.FindByUniqueName("EditColumn").Visible = true; |
| gridIndications.MasterTableView.Columns.FindByUniqueName("DeleteColumn").Visible = true; |
| } |

| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> |
| <telerik:RadGrid ID="RadGrid1" runat="server"> |
| <MasterTableView /> |
| <ClientSettings> |
| <Resizing AllowColumnResize="true" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| </telerik:RadAjaxPanel> |
| <asp:LinkButton ID="LinkButton1" runat="server" Text="Click Me!" OnClientClick="return Update();" /> |
| <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
| <script type="text/jscript"> |
| function Update() { $find('<%= RadAjaxPanel1.ClientID %>').ajaxRequest('', ''); } |
| </script> |
| </telerik:RadScriptBlock> |
| <telerik:RadGrid ID="exampleRadGrid" runat="server" |
| onitemdatabound="reportDealershipRadGrid_ItemDataBound"> |
| <MasterTableView> |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <EditItemTemplate> |
| <telerik:RadFileExplorer ID="fileNameRadFileExplorer" runat="server" /> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| protected void exampleRadGrid_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item.IsInEditMode) |
| { |
| string path = Page.ResolveUrl("~/Files/"); |
| RadFileExplorer fileNameRadFileExplorer = (RadFileExplorer)e.Item.FindControl("fileNameRadFileExplorer"); |
| fileNameRadFileExplorer.Configuration.ViewPaths = new string[] { path }; |
| fileNameRadFileExplorer.BackColor = System.Drawing.Color.Green; fileNameRadFileExplorer.InitialPath = path; |
| } |
| } |

