Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Hi,
Am able to enter comments using Rich Text editor for my project [at Design and HTML modes] using Firefox version prior to 62.0 but unable to enter comments  in Version - 62.0 only [Especially at design mode]. Attaching screenshots for reference.
Please help me on this
Rumen
Telerik team
 answered on 19 Sep 2018
5 answers
607 views

Hi,
When I try to copy-paste contents from word to rad editor, the contents are getting copied without any formatting in IE 11 while there is no issue with other browsers like Firefox or Chrome. In other browsers the formatting is proper for the copied text. Please provide a fix for this issue.

Thanks,

Anjo.

Rumen
Telerik team
 answered on 19 Sep 2018
3 answers
754 views
When using ASP.NET 4.5 and you have some ASP validation controls on the page together with a postback control from the RadControls for ASP.NET AJAX suite, the following exception will be thrown:

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

This can be reproduced with the following simple markup:
<telerik:RadScriptManager runat="server" ID="ScriptManager1">
</telerik:RadScriptManager>
 
<telerik:RadComboBox runat="server" ID="ComboBox1"></telerik:RadComboBox>
 
<asp:Button ID="Button1" runat="server" Text="Submit" />
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ErrorMessage="Choose a destination first" ControlToValidate="ComboBox1" />

According to Microsoft, unobtrusive validation is the new way ASP.NET net validators work and it by default requires jQuery. We ship jQuery with our controls, but we did not register it the way Microsoft wants before Q3 2012 SP1. Proper resource mapping was added in the Q3 Service Pack 1 release. In the meantime the following steps will allow you to use this feature:

1. Add Global.asax file to the project
2. Put the following code in the Application_Start event:
var def = new ScriptResourceDefinition()
            {
                ResourceName = "Telerik.Web.UI.Common.jQuery.js",
                ResourceAssembly = System.Reflection.Assembly.GetAssembly(typeof(Telerik.Web.UI.RadWebControl))
            };
 
ScriptManager.ScriptResourceMapping.AddDefinition("jquery", def);


NOTE: There is currently a bug in the default ASP ScriptManager that requires jQuery to be the first script registered on the page in order for Unobtrusive Validation to work: http://connect.microsoft.com/VisualStudio/feedback/details/748064/unobtrusive-validation-breaks-with-a-script-manager-on-the-page.
Vessy
Telerik team
 answered on 19 Sep 2018
4 answers
200 views

It seems Map "remembers" file it was originally loaded with. Meaning if i change file content, Map still loads with an old one. I used to workaround this issue by changing file name every time i load.

Not sure if any new solutions to the issue were introduced recently.

Thank you

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 18 Sep 2018
2 answers
1.0K+ views

I have two filter columns in my grid; however, only one filter (Status) is working. The second filter (Classification) is not working ( alone or in combination with first). I followed Demo example from https://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultvb.aspx

 

 <telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" Width="100%"   AllowFilteringByColumn="True"
            AllowSorting="True" AllowPaging="True" PageSize="7" runat="server" AutoGenerateColumns="False"
            ShowStatusBar="true" EnableLinqExpressions="false">
            <MasterTableView DataKeyNames="InstitutionID" TableLayout="Fixed">
                <Columns>
                    <telerik:GridBoundColumn UniqueName="InstitutionID" DataField="InstitutionID" HeaderText="Institution ID"
                        AllowFiltering="false" HeaderStyle-Width="200px" />
                     
                   <telerik:GridBoundColumn UniqueName="PrgOffStatus" DataField="PrgOffStatus" HeaderText="Status" HeaderStyle-Width="200px">
                        <FilterTemplate>
                            <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxCity"   
                                  Width="100px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("PrgOffStatus").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="CityIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
<telerik:RadComboBoxItem Text="Active" Value="Active" />
                                            <telerik:RadComboBoxItem Text="Discontinued" Value="Discontinued" />
                                            <telerik:RadComboBoxItem Text="Suspended" Value="Suspended" />   
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                                <script type="text/javascript">
                                    function CityIndexChanged(sender, args) {
                                        var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
tableView.filter("PrgOffStatus", args.get_item().get_value(), "EqualTo");
                                }
                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProgramClass" HeaderText="Classification" UniqueName="ProgramClass"
                        HeaderStyle-Width="200px" >
                        <FilterTemplate>
                            <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxCountry"    
                                 Width="100px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("ProgramClass").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="CountryIndexChanged">
                                <Items>
                                     <telerik:RadComboBoxItem Text="All" Value="" />
                                           <telerik:RadComboBoxItem Text="Program" Value="Program" />
                                            <telerik:RadComboBoxItem Text="Concentration" Value="Concentration" />
                                            <telerik:RadComboBoxItem Text="Certificate" Value="Certificate" /> 
            <telerik:RadComboBoxItem Text="NoAward" Value="NoAward" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">
                                <script type="text/javascript">
                                    function CountryIndexChanged(sender, args) {
                                        var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
tableView.filter("ProgramClass", args.get_item().get_value(), "EqualTo");
                                }
                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                         
                    </telerik:GridBoundColumn>
                  
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

 

 

prasadsa01
Top achievements
Rank 1
 answered on 18 Sep 2018
2 answers
141 views

Hi,
I have a page that is forced via a document mode to render compatible to IE7 using:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

I am getting severe graphical issues in IE 11 that render some of my Telerik based controls unusable.

These issues are ressolved by removing the X-UA-Compatible line (shown above).

I am using UI for ASP.NET AJAX 2018.1.117.45
My question is can anyone confirm what is the official earliest IE version that UI for ASP.NET AJAX version 2018.1.117.45 supports?
Thanks
Ben

BB1987
Top achievements
Rank 1
 answered on 18 Sep 2018
4 answers
849 views
 <telerik:RadDatePicker runat="server" ID="datepickShipDate" Width="100px" DateInput-ShowButton="false" 
            Skin="WebBlue">  
            <Calendar ID="calShipDate" runat="server" ShowRowHeaders="false" >                                 
            </Calendar>              
            <DateInput ID="diShipDate" runat="server" onclick="showDatePicker(this)" /> 
        </telerik:RadDatePicker> 

<script language="jscript" type="text/jscript">  
  function showDatePicker(sender) {  
 
 
                $find("<%= datepickShipDate.ClientID %>").showPopup();                
 
            }  
 
             
        </script> 


I have the above code on a page...  I run it in IE, and I click on the datepicker control's textbox or the calendar button, and I get the expected calendar popup displayed.

But in FireFox, it does nothing. 

I couldn't find anything in the forums about anyone having any trouble with firefox.

Any help is apprecicated.

Thanks!
Debbie
Eyup
Telerik team
 answered on 18 Sep 2018
1 answer
768 views

Hi, 

I'm experiencing some issues with RadMaskedTextBox. I'm using this mask: "(###) ###-#### #######". The last 7 numbers being for extension numbers. I understand that there are 4 different options that provide differing values in my backend .ascx file: Text / TextWithLiterals / TextWithPrompt / TextWithPromptAndLiterals. Everything works as expected when following the mask from left-to-right.

But weird things are happening when the user inputs in the middle of the mask: When I debug my RadMaskedTextBox properties in C#, all of these 4 options are ignoring the last 7 numbers.

 

First: Is it a supported feature of RadMaskedTextBox to allow the user to input in the middle of a mask? 

If no ... what's the best workaround?

If yes ... how do I access the proper value?

 

Test values on front-end input:

  • (555) 555-5555 _534___
  • (555) 555-5555 _54__2_
  • (555) 555-5555 ____2__

 

When inspecting the input, there are 4 values on front-end: 

  • validationText: "(555) 555-5555 2"
  • valueAsString: "(555) 555-5555 ____2__"
  • valueWithPromptAndLiterals: "(555) 555-5555 ____2__"
  • lastSetTextBoxValue: "(555) 555-5555 ____2__"

 

In the backend, all of these values are as follows: 

  • Text: "5555555555"
  • TextWithLiterals: "(555) 555-5555"
  • TextWithPrompt: "5555555555_______"
  • TextWithPromptAndLiterals: "(555) 555-5555 _______"

 

I cannot find a single solution to allow the user to input a number in the middle of the mask. All the front-end values of the input seem to allow for the user to input in the middle of the mask. But why aren't ANY of these values sent back to C#? The only value I can find that doesn't ignore the extension is LastSetTextBoxValue - but this value is inaccessible. 

  • LastSetTextBoxValue: "(555) 555-5555 ____2__"

 

See images attached.


Marin Bratanov
Telerik team
 answered on 17 Sep 2018
8 answers
156 views
Hi,

We are using a RadMenu in the title of a RadDock.
But after upgrading to 2012.3.1016, we have problems with the z-index of the menu. The menu appears behind the RadDock below...
It does only happen in Chrome and Firefox, IE is not affected!

See the following example:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="dock.aspx.vb" Inherits="TestaTredjepartWeb.dock" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="s" runat="server">
            </asp:ScriptManager>
            <telerik:RadDockZone runat="server" ID="dz">
                <telerik:RadDock runat="server" ID="aaa">
                    <TitlebarTemplate>
                        <telerik:RadMenu runat="server" ID="mm">
                            <Items>
                                <telerik:RadMenuItem Text="aaa">
                                    <Items>
                                        <telerik:RadMenuItem Text="bbb"></telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="ccc"></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                    </TitlebarTemplate>
                </telerik:RadDock>
                <telerik:RadDock runat="server" ID="RadDock1"></telerik:RadDock>
            </telerik:RadDockZone>
        </div>
    </form>
</body>
</html>

When expanding the menu, it will appear behind the lower RadDock, this wasn't the case in the previous version of Telerik.

We have managed to narrow it down to the following css:
.RadDock {
  /* improves drag&drop in mobile browsers */
  -webkit-transform: rotate3d(0, 0, 1, 0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  -moz-transform: rotate3d(0, 0, 1, 0);
  -moz-backface-visibility: hidden;
  -moz-perspective: 1000;
  -o-transform: rotate3d(0, 0, 1, 0);
  -o-backface-visibility: hidden;
  -o-perspective: 1000;
  -ie-transform: rotate3d(0, 0, 1, 0);
  -ie-backface-visibility: hidden;
  -ie-perspective: 1000;
}

When overriding the transform or backface property, the problem is fixed, but I guess there is a reason for this new css?

Regards
Caesar
Rumen
Telerik team
 answered on 17 Sep 2018
1 answer
175 views

Framework 4.0, Telerik version 2018.1.117.40, I click the select button and then it shows the file above with a green dot.  I select "Upload Files" and it goes away and the file is not in the folder until I do this a 2nd time and 3rd ... etc.  This is in the development environment.

page code

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CheckerResultsReport.Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">    
    <link href="CSS/Main.css" rel="stylesheet" />
    <title></title>
</head>
<body>    
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<div class="DownloadForm">
        <h3>Attached Files:</h3>       
        <h5>Upload:</h5>
        <div class="UploadArea">
            <telerik:RadAsyncUpload MaxFileSize="52428800" ToolTip="Select file(s) then click Upload Files to save" RenderMode="Auto" runat="server" ID="RadAsyncUpload" MultipleFileSelection="Automatic" Skin="Office2010Blue" />
        </div>
        <div class="UploadButtonArea" >
            <telerik:RadButton CssClass="UploadButton" Text="   Upload Files   " id="btnUpload" runat="server" OnClick="btnUpload_Click"></telerik:RadButton>                               
        </div>
        <p>(max file size 50MB)</p>                           
        <div class="clear"></div>
        <script>                              
            if (Telerik.Web.Browser.ie && (Telerik.Web.Browser.version == 10 || Telerik.Web.Browser.version == 11))
            {
                Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; }
            }                                
            </script>
    </div>
</form>
</body>
</html>

 

Method

protected void btnUpload_Click(object sender, EventArgs e)

        {            
            //******************************************
            //upload excel to temp folder, process and then delete
            //******************************************
            VirtualDirectory = ConfigurationManager.AppSettings.Get("FileStorageLocation");
       
            if (!Directory.Exists(VirtualDirectory))
            {
                Directory.CreateDirectory(VirtualDirectory);
            }
                                                                  
            RadAsyncUpload.TargetFolder = VirtualDirectory;
        }

web.config

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>    
    <customErrors mode="Off" />
    <httpRuntime maxRequestLength="32768" />
    <identity impersonate="false" />
    <compilation debug="true" targetFramework="4.0" />
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" />
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false" />
      <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=12.0.18.416, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true" />      
    </httpHandlers>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
  </system.web>
  <appSettings>
    <add key="vs:EnableBrowserLink" value="false" /> 
    <add key="FileStorageLocation" value="\\kcstwebapplications\Attachments\CheckerResultsReportTemp\" />
  </appSettings>
  <system.webServer>
   <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <remove name="ChartImage_axd" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=12.0.18.416, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode" />
    </handlers>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="33554432" />
      </requestFiltering>
    </security>
  </system.webServer>
  <system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="2147483644" />
      </webServices>
    </scripting>
  </system.web.extensions>
</configuration>

 

Mark
Top achievements
Rank 1
 answered on 17 Sep 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?