Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
129 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
936 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
93 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
743 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
692 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
107 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
126 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
5 answers
878 views
Am I missing something?

On the DateTimePicker and TimePicker you can easily set the TimeView.TimeFormat to something like "HH:mm:ss", to cause the TimePicker popup to display values like "23:00:00", but the textbox for the control still displays values like "6/8/2008 11:00 PM".

I would like the "11:00 PM" to display as "23:00:00" so the user can adjust down to the second, if needed.

Where is that format set?
Thanks!
sgrover
Top achievements
Rank 1
 answered on 15 Sep 2018
3 answers
878 views

How Attributes RadTextBox TextMode="Password" after postBack

I want to help solve this problem

.aspx

<form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div>
        <asp:Label ID="Label1" runat="server" Text="Passwoed TextBox"></asp:Label>
        <br />
        <asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox>
        <br />  <br />
        <asp:Label ID="Label2" runat="server" Text="Passwoed radtextbox"></asp:Label>
        <br />
        <telerik:radtextbox runat="server" ID="radtextbox1" TextMode="Password" Skin="Bootstrap"></telerik:radtextbox>
        <br />  <br />
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </div>
    </form>

 

.vb

If Me.IsPostBack Then
 
            radtextbox1.Attributes("value") = radtextbox1.Text.Trim() 'not work         
 
            'TextBox1.Attributes("value") = TextBox1.Text  'this work
            TextBox1.Attributes.Add("value", TextBox1.Text.Trim()) 'this work
 
End If

 

 

Marin Bratanov
Telerik team
 answered on 15 Sep 2018
9 answers
347 views
Hi,

Based on the section Setting predefined values for controls inside user control on item insertion, how can I set predefined values inside a user control on item insertion at the Page Load when we set IsItemInserted = true in the PreRender Event ?

Here is the code I have

protected void RadGrid_PreRender(object sender, System.EventArgs e)
    {
        if (!this.IsPostBack)
        {
            if (Request["mode"] != null && Request["mode"] == "add")
            {
                RadGrid1.MasterTableView.IsItemInserted = true;
            }
 
            RadGrid1.MasterTableView.Rebind();
        }
    }


protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.InitInsertCommandName)
    {
         if (Request.QueryString["SomeParameter"] != null)
        {
            e.Canceled = true;
            e.Item.OwnerTableView.InsertItem();
 
            GridEditableItem insertedItem = e.Item.OwnerTableView.GetInsertItem();
            String MyUserControlId = GridEditFormItem.EditFormUserControlID;
            UserControl MyUserControl = insertedItem.FindControl(MyUserControlId) as UserControl;
            HiddenField hidden = MyUserControl.FindControl("SomeControl") as HiddenField;
            hidden.Value = Request.QueryString["SomeParameter"];
        }
    }
}

Also, it works fines if I don't add IsItemInserted = true in the PreRender event



Thanks
Kiranmayee
Top achievements
Rank 1
 answered on 15 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?