Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
1.2K+ views

If I change the Height (i.e. 10px) of a RadLinkButton, no matter what I do, I can't get the Text to vertical align.  Is this a bug or can someone provide me an example on how to get the Text to correctly align vertically?

<tr>
    <td style="width:8px"></td>
    <td style="text-align:center; vertical-align:middle">
        <telerik:RadLinkButton ID="rlbn_ResetPassword" runat="server" Text="Reset Password" RenderMode="Lightweight" Height="10px" Font-Size="Small" Style="vertical-align:middle"></telerik:RadLinkButton>
    </td>
    <td style="width:8px"></td>
</tr>

 

Cheers, Rob.

Rumen
Telerik team
 answered on 20 Sep 2018
3 answers
80 views

Could someone help me understand the differences between these two controls and why one would be used over the other?

After reading the documentation they seem VERY VERY similar so I'm not sure why both exists.

Cheers, Rob.

Rumen
Telerik team
 answered on 20 Sep 2018
1 answer
51 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
494 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
618 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
119 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
927 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
89 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
721 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
675 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?