I'm trying to get the RadDatePicker to work with the CompareValidator with the DataTypeCheck operator. Initially, I wanted to use this as a dynamically created control in the code-behind. (It works great with a normal validator, but it also validates blank textboxes when I don't want it to). I noticed this seemed to be an issue 10 years ago from what I've searched, but is this still the case?
I did a little testing here -
<form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <asp:Label ID="lblDate" Text="Date:" AssociatedControlID="txtDate" runat="server" /> <asp:TextBox ID="txtDate" runat="server" /> <asp:CompareValidator ID="txtDatecompare" Text="(Invalid Date)" ControlToValidate="txtDate" Type="Date" Operator="DataTypeCheck" runat="server" /> <hr /> <asp:Label ID="lblTelerikDate" Text="Date:" AssociatedControlID="rdDate" runat="server" /> <telerik:RadDatePicker ID="rdDate" runat="server"> </telerik:RadDatePicker> <asp:CompareValidator ID="txtRadDateCompare" Text="(Invalid Date)" ControlToValidate="rdDate" Type="Date" Operator="DataTypeCheck" runat="server" /> <br /> <asp:Button ID="btnSubmit" Text="Submit" runat="server" /> </div></form>
The submit button simply returns the time of day. What I expected to happen is -
Textbox is left blank - Do nothing. I would expect this, and handle required field validators late in the code.
Textbox has a valid date - Do nothing.
Textbox has an invalid date - Display a message and cancel the postback. However, the above code still causes a postback. If I put an invalid date into the normal textbox, it works fine. If I put an invalid date into the raddatepicker, the submit button still fires. My goal is to do this dynamically, so if it's not possible, I could always create a server-side validation to loop through the added controls.

I have HtmlChart control which works from Visual Studio 2015, but not when deployed on a Web Server. When View Source, the Web Server page source does not have the svg tag. The source is below. The Telerik dll version is 2016.2.504.45, size 26,416 KB, dated 5/23/2016 11:25 AM. How can I correct the behavior on the web server please?
<svg xmlns="http://www.w3.org/2000/svg" style="left: 0px; top: -0.36px; width: 100%; height: 100%; overflow: hidden;" version="1.1"><telerik:RadHtmlChart ID="rhcSummary" runat="server" Height="200" Width="700"> <PlotArea> <Series> <telerik:ColumnSeries Name="OpenClaims" DataFieldY="Value"> <Appearance FillStyle-BackgroundColor="Green" /> <TooltipsAppearance BackgroundColor="LightGray"> <ClientTemplate> #= dataItem.Tooltip # </ClientTemplate> </TooltipsAppearance> </telerik:ColumnSeries> </Series> <XAxis Name="Statuses" DataLabelsField="Meaning" MajorTickSize="1" MinorTickSize="1" Step="1" /> <YAxis Name="Counts" MajorTickSize="5" MinorTickSize="5" Step="10" /> </PlotArea> <Legend> <Appearance Visible="false" /> </Legend></telerik:RadHtmlChart>Hi,
I am trying to adjust the width of the input box but it's not working. Weirdly other properties work but I am not getting to reflect the changes in width.
My CSS code:
html .RadAutoCompleteBox .racInput { font-family: sans-serif; font-size: 1.2em; height: 30px; width: 1000px !important;}
My aspx code:
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" /><telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" autopostback="true" EmptyMessage="Type in data..." DataSourceID="SqlDataSource1" DataTextField="edesc" DataValueField="ecode" InputType="Token" Width="450" DropDownWidth="150px" OnEntryAdded="RadAutoCompleteBox1_EntryAdded" OnEntryRemoved="RadAutoCompleteBox1_EntryRemoved" ></telerik:RadAutoCompleteBox>
Notice that I define a default value of 450 in ASPX code but as far as I know the CSS should override it, correct? Anyway, I tried to remove the initial definition but CSS still won't work.
As I mentioned all other properties work fine but the "width" one. Any idea?
Thanks in advance!
radcombo_mns_severity.DataTextField = "SEVERITY";radcombo_mns_severity.DataValueField = "ID";radcombo_mns_severity.ToolTip = "DESC";radcombo_mns_severity.DataSource = from c in quarkdb.MNS_SEVERITies orderby c.SEVERITY select new { c.SEVERITY, c.ID, c.DESC };radcombo_mns_severity.DataBind();Hi All,
I have RadGrid inside RadWindow, i want to remove border on RadGrid. Any have solution..?
This my RadWindow Code<telerik:RadWindow ID="RwEmployeeBrowser" runat="server" Modal="true" Width="1200px" Height="550px" KeepInScreenBounds="true" Title="Select Employee"> <ContentTemplate> <UC:UCEmploye ID="UCEmploye" runat="server" /> </ContentTemplate></telerik:RadWindow>This My RadGridCode<telerik:RadGrid RenderMode="Lightweight" ID="RgData" PagerStyle-AlwaysVisible="true" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both" OnPreRender="RgData_PreRender" OnItemCommand="RgData_ItemCommand" OnItemDataBound="RgData_ItemDataBound" OnNeedDataSource="RgData_NeedDataSource"> <GroupingSettings CaseSensitive="false" /> <MasterTableView CommandItemDisplay="Top" Width="100%" AllowMultiColumnSorting="false"> <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToExcelButton="false" ShowRefreshButton="false" /> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderStyle-Width="2px"> <FilterTemplate> <asp:ImageButton ID="btnClearFilter" CausesValidation="false" runat="server" ImageUrl="/Style Library/bower_components/Telerik/Delete.gif" AlternateText="Clear Filter" ToolTip="Clear Filter" OnClick="btnClearFilter_Click" Style="vertical-align: middle" /> </FilterTemplate> <ItemTemplate> <asp:LinkButton runat="server" ID="ImgBtn" Text="Select" ForeColor="Blue" CausesValidation="false" CommandName="Select" /> <asp:Label runat="server" ID="lblId" Text='<%# Eval( "PersonId" ) %>' Visible="false"></asp:Label> <asp:Label runat="server" ID="lblEmpLogin" Text='<%# Eval( "EmployeeLogin" ) %>' Visible="false"></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="No" AllowFiltering="false"> <ItemTemplate> <asp:Label ID="numberLabel" runat="server" /> </ItemTemplate> <HeaderStyle Width="15px" /> </telerik:GridTemplateColumn> <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" UniqueName="Un1" FilterControlWidth="100%" DataField="EmployeeNumber" HeaderText="NIK" HeaderStyle-Width="10%" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderButtonType="TextButton"> <HeaderStyle Width="10%"></HeaderStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" UniqueName="Un2" FilterControlWidth="100%" DataField="EmployeeName" HeaderText="Employee Name" HeaderStyle-Width="30%" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderButtonType="TextButton"> <HeaderStyle Width="15%"></HeaderStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" UniqueName="Un3" FilterControlWidth="100%" DataField="Position" HeaderText="Position" HeaderStyle-Width="30%" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderButtonType="TextButton"> <HeaderStyle Width="25%"></HeaderStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" UniqueName="Un4" FilterControlWidth="100%" DataField="DepartmentName" HeaderText="Department" HeaderStyle-Width="30%" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderButtonType="TextButton"> <HeaderStyle Width="25%"></HeaderStyle> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Left" AutoPostBackOnFilter="true" UniqueName="Un5" FilterControlWidth="100%" DataField="CompanyName" HeaderText="Company" HeaderStyle-Width="30%" CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderButtonType="TextButton"> <HeaderStyle Width="25%"></HeaderStyle> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings Selecting-AllowRowSelect="false" EnablePostBackOnRowClick="false" EnableRowHoverStyle="false"> <Resizing AllowColumnResize="false" ResizeGridOnColumnResize="false" AllowResizeToFit="false" /> </ClientSettings> <HeaderStyle HorizontalAlign="Center" /> <FilterMenu RenderMode="Lightweight"></FilterMenu> <HeaderContextMenu RenderMode="Lightweight"></HeaderContextMenu> </telerik:RadGrid>
I have a page that loads a list of controls based on report criteria. I've been converting some of these controls to Telerik, but I also have some controls that are custom controls. I've narrowed down the issue to when an ASP.NET control (ASP from the dropdown) gets loaded after a Telerik control (Telerik from the dropdown), I get a "Failed to load viewstate" error. It also happens if both controls are Telerik controls, but does not happen if all controls are ASP.NET controls.
DynamicControls.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="DynamicControls.aspx.vb" Inherits="TestCode.DynamicContrls" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> </telerik:RadScriptManager> <asp:DropDownList ID="cboCriteria" runat="server" AutoPostBack="True"> <asp:ListItem>Select a form</asp:ListItem> <asp:ListItem Value="Telerik">Form With Telerik Control</asp:ListItem> <asp:ListItem Value="ASP">Form With ASP Control</asp:ListItem> </asp:DropDownList> <br /> <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> <br /> </div> </form></body></html>
DynamicControls.vb
Imports Telerik.Web.UIPublic Class DynamicContrls Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'If Not Session("ControlsCreated") = Nothing Then CreateControl(cboCriteria.SelectedItem.Value) 'End If End Sub Private Sub CreateControl(ControlType As String) Select Case ControlType Case "Telerik" RenderTelerikControls() Case "ASP" RenderASPControls() End Select Session("ControlsCreated") = True End Sub Private Sub RenderTelerikControls() Dim txtFirst As New RadTextBox txtFirst.ID = "txtTelerik" & Guid.NewGuid.ToString PlaceHolder1.Controls.Add(txtFirst) PlaceHolder1.Controls.Add(New LiteralControl("<BR>")) End Sub Private Sub RenderASPControls() Dim txtFirst As New TextBox txtFirst.ID = "txtASP" & Guid.NewGuid.ToString PlaceHolder1.Controls.Add(txtFirst) PlaceHolder1.Controls.Add(New LiteralControl("<BR>")) End Sub Protected Sub cboCriteria_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboCriteria.SelectedIndexChanged ' For this example, simply reload the page. End SubEnd ClassIt seems that adding an via "Insert Symbol" is not working.
We can reproduce this issue on the demo trial: I have downloaded the demo trial as a standalone-application, added the non-breaking space into toolsFile.xm and checked the behavior.
Please see this screencast for more details: https://www.screencast.com/t/J9aB5KdLr
We tried to create a custom ContentFilter that will replace the all zero width space characters to non-breaking space in the content. But that seems not to work as we don't have those zwsp charachters in the content withing the ContentFilter. Tried soluiton based on this post:https://www.telerik.com/forums/zwsp-inserted-into-html-in-chrome
Anyone had this issue before and found a solution?

