Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
2.2K+ views
Hi all,

I am using the asp:RegularExpressionValidator for telerik:RadTextBox to validate email address as following link
http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultcs.aspx

But it is wrong when user input space at the front or at the end of the email address.
Are there any ways to trim it?

Thanks.

Andy.


Neil
Top achievements
Rank 1
 answered on 29 Jan 2018
1 answer
180 views

Hi.  I'm using Telerik 2016.3.1027.40.  I need to export an Excel spreadsheet in BIFF that includes both the data that appears in a UI table, which Telerik handles, and any table filtering criteria and the filtering option (Contains, StartsWith, EqualTo, Between, etc.) on an additional tab on the worksheet.  I can create the additional tab and population it with data.  My question is:  is it possible to retrieve the filtering option used per column (if any) in the UI in the view's code behind?

 

<telerik:Radgrid Rendermode="Lightweight" ID="RadGrid1" runat="server" showstatusbar="true" autogeneratecolumns="False" AllowFilteringByColumn="True" pagesize="10" allowsorting="True" allowmultirowselection="False" allowpaging="True" Filtertype="Combined"  onneeddatasource="RadGrid1_NeedDataSource"   oniteminserted="RadGrid1_ItemInserted" onitemcommand="RadGrid1_ItemCommand" oninsertcommand="RadGrid1_InsertCommand" onupdatecommand="RadGrid1_UpdateCommand" onitemdatabound="RadGrid1_ItemDataBound" ondetailtabledatabind="RadGrid1_DetailTableDataBind" OnDeleteCommand="RadGrid1_DeleteCommand" Skin="Outlook" OnItemCreated="RadGrid1_ItemCreated" ShowExportToExcelButton="true" onBiffExporting="RadGrid1_BiffExporting">   
<MasterTableView  AutoGenerateColumns="False" UniqueName="CATDESCRIPTION" AllowMultiColumnSorting="True" DataKeyNames="CAT_DESCRIPTION" PagerStyle-AlwaysVisible="true" EditMode="InPlace" CommandItemDisplay="Top">
<DetailTables>
   <telerik:GridTableView DataKeyNames="pk" Name="Codes" TableLayout="Auto" EditMode="InPlace" PagerStyle-AlwaysVisible="true" CommandItemDisplay="Top">
<CommandItemSettings ShowExportToExcelButton="true" />
<CommandItemSettings AddNewRecordText="Add Rule" />
Additional code omitted...

 

and the code behind something like this...

protected void RadGrid1_BiffExporting(object o, GridBiffExportingEventArgs e) {
  Telerik.Web.UI.ExportInfrastructure.Table newSheet1 = new Telerik.Web.UI.ExportInfrastructure.Table("Metadata");
  // Get filtering options here...
  // Add filtering options to newSheet1 in new cells...

   e.ExportStructure.Tables.Add(newSheet1);
}
Matthew
Top achievements
Rank 1
 answered on 29 Jan 2018
1 answer
120 views
I want to use the css @Font-Face to load in a custom font in .tff format.  I then want to use that loaded @Font-Face as the font for specific rows in a rad-grid.  How is this achieved?
Vessy
Telerik team
 answered on 29 Jan 2018
1 answer
913 views

I am attempting to use the below to apply a css class to rows in my rad grid.  I am only showing a brief portion of the code behind as I only need to apply this to a few of the rows.

However, the css is not applied.  What would be the proper way to achieve such?

 

foreach (GridDataItem row in r.MasterTableView.Items)
{
row.CssClass = "blamanca";
}

Vessy
Telerik team
 answered on 29 Jan 2018
1 answer
895 views

Hi

 

I have a need to test the column name. Is it possible in the itemDatabound event to get to the actual column name that is being bound to?

 

I'd expect this to change with each cell, or does the bind happen per row in one go?

 

Andy

Marin Bratanov
Telerik team
 answered on 29 Jan 2018
1 answer
191 views

I'd like to give the user a popup or tooltip of some sort that lets them know that, yes a search has been conducted with the text they've provided but there are no results with their input.

Unfortunately all the events I've tried are too early (the data source's OnSelected) or don't get triggered (the search box's Search). How can I achieve this?

Peter Milchev
Telerik team
 answered on 29 Jan 2018
8 answers
390 views
Hello,

I would like to use a slider to let the user select a range of the day in increments of 5 minutes.

So the range min value would be 00:00 and range max value would be 23:59 (or 00:00).

So using the slider, the user is able to select the range 06:25-22:20

Is that possible using your RadSlider?
sri
Top achievements
Rank 1
 answered on 29 Jan 2018
1 answer
228 views

Hi,

 I have a RadWindowManager on a page where I have a function assigned to the OnClientBeforeClose event.

<telerik:RadWindowManager ID="rwmManager"  runat="server"  DestroyOnClose="true"   ReloadOnShow="true"   CenterIfModal="true"  OnClientClose="RefreshGrid" OnClientBeforeClose="ChangeAlert"  />

 

The problem I am having is that the OnClientBeforeClose event only fires the first time I open the window.  If I close the window and then re-open and then subsequently close the window, the OnClientBeforeClose event doesn't fire.

 

If I change the DestroyOnClose = "false" then the event will fire every time, but the previous window I opened gets cached and flashes on the screen before the new window is opened.

How can I make this work without setting the DestroyOnClose to false.

Thank You

Tracy

 

 

Marin Bratanov
Telerik team
 answered on 29 Jan 2018
0 answers
212 views
'm using Telerik UI for ASP.NET AJAX R1 2018.  When I use the AntiXssEncoder as the default encoder...
 web.config 
    <httpRuntime encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary"  maxRequestLength="102400"/>
ghd258 ghd258
Top achievements
Rank 1
 asked on 27 Jan 2018
1 answer
190 views

I have a RadDropDownList in a TemplateColumn of a RadGrid. The grid is using batch editing mode, and the drop-down list is loading its data from a web service.

This is all generally working, except for the fact that the DDL does not load it's items until the first time you click on the control. Unfortunately, that is a tad too late for the existing value to be retained the first time that it is used. Editing subsequent rows is fine.

So, I'd like to cause the DDL to load it's items earlier. Is there a way to trigger the RadDropDownList to dynamically load it's list on demand??


Marin Bratanov
Telerik team
 answered on 26 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?