Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
316 views

Hello

I want to add a custom font in Rad Editor. I added @font-face and URL to my ttf file. For testing purposes I added two DIVs outside the RAD editor and they are displaying the fonts correctly in both browsers. However, when I try to set a font on text in RadEditor, the font changes only if I'm in Firefox. If I'm in Google Chrome, this changing font in Editor does not work - instead of my custom font the default Times New Roman is used.

Here's the code and font file you can download from this link: https://dl.dropbox.com/s/xhi4lzca1zbq0fk/ArialUnicodeMS.ttf?dl=0

<%@ Page Language="VB" AutoEventWireup="false" EnableViewState="true"  %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html>
<html>
<head runat="server">
    <title>Test</title>
   <style type="text/css">
   
        @font-face {
            font-family: ArialUnicode;
            src: url('ArialUnicodeMS.ttf');
        }
       
   </style>
    
</head>
<body>
    <form id="form1" runat="server">
         
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">           
        </telerik:RadScriptManager>
 
        <div style="font-family: ArialUnicode">ArialUnicode</div>
        <div style="font-family: Arial">Arial</div>
 
        <telerik:RadEditor ID="RadEditor1" Runat="server" content ="Hello" RenderMode="Auto"  >
            <FontNames>
                <telerik:EditorFont Value="Arial" />
                <telerik:EditorFont Value="Times New Roman" />
                <telerik:EditorFont Value="ArialUnicode" />
            </FontNames>
        </telerik:RadEditor>
 
    </form>
</body>
</html>

 

Can you help me?

Thanks

 

Goran
Top achievements
Rank 1
 answered on 09 Aug 2017
7 answers
267 views
Hi,

We have a requirement to export from the RadScheduler to Excel. Is this possible?


Thanks,
Ryan
Rumen
Telerik team
 answered on 09 Aug 2017
0 answers
114 views

Hello,

This control appears to have a major problem:

I have this code:

 

<telerik:RadRadioButtonList ID="RadRadioButtonList1" runat="server" AutoPostBack="False">
    <Items>
        <telerik:ButtonListItem Text="ButtonListItem1" Value="value1" Selected="True" />
        <telerik:ButtonListItem Text="ButtonListItem2" Value="value2" />
    </Items>
</telerik:RadRadioButtonList>

 

I then have button with the following code:

protected void RadButton1_Click(object sender, EventArgs e)
{
    RadLabel1.Text = RadRadioButtonList1.SelectedItem.Value;
}

 

When this is run I get an error:

{"Object reference not set to an instance of an object."}

So the system does not recognise the items.

 

Developer
Top achievements
Rank 1
 asked on 09 Aug 2017
2 answers
156 views

Hello,

I would like to be able to display formatted within a RadGrid using either google prettify or .  I'm currently trying to display it within a NestedViewTemplate within a RadGrid.  Outside of the grid displays fine but it never works inside.  I'd also like to retain the skins if possible.

Here's a simple example:

                    <NestedViewTemplate>
                          <pre class="prettyprint">&lt;samplexml&gt;&lt;tag value=&quot;1&quot;/&gt;&lt;/samplexml&gt;</pre>
                    </NestedViewTemplate>

Thanks

Chris
Top achievements
Rank 1
 answered on 09 Aug 2017
3 answers
156 views
Hi

In the editor is there a way to cancel key presses? I've tried a couple of things (onkeyup return false etc). But the key pressed still gets into the text?

Thanks
David
Rumen
Telerik team
 answered on 09 Aug 2017
0 answers
86 views

Hi everyone,

I have a problem when I use the "Stacked" attribute of Chart. I have 2 series, and I would like to stack them horizontally.

When the value of the first serie is greater or equal than 80, then proportion are no longer respected (see screenshots).

On the first screenshot, the first serie has a value of 79, the second serie 21.

On the second screenshot, the first serie has a value of 80, the second serie 20. And here is my problem.

My chart is created in server side. Here is a part of code :

SeriesItem itemPro = new SeriesItem(80);
SeriesItem itemPrivacy = new SeriesItem(20);
chartEngine.PlotArea.Series[0].Items.Add(itemPro);
chartEngine.PlotArea.Series[1].Items.Add(itemPrivacy);
 
(chartEngine.PlotArea.Series[0] as ColumnSeries).Stacked = true;

 

Any help would be appreciated.

Loïc
Top achievements
Rank 1
 asked on 09 Aug 2017
0 answers
119 views

We are getting the below error when the focus is moved out of the grid. The telerik rad grid which we are using has got around 45 columns. In the row edit mode, it has got text boxes and drop downs binded to it.

The telerik version which we are using is v4.0.30319 and Visual Studio version is 2015.

If the number of grid columns is around 37, we are not getting any issue.

Please advise us on how to fix this

Unhandled exception at line 16180, column 31 in http://localhost:54740/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c577adfd-7619-4e5f-98eb-f0d5d1eb5766:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2013.3.1114.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:8d3dfe81-f887-4a80-ad14-8e882b52e5e6:16e4e7cd:f7645509:24ee1bba:e330518b:2003d0b8:88144a7a:1e771326:c8618e41:ed16cbdc:f46195d3:6b3f73b3:b7778d6c:e085fe68:58366029:ccd65cf8:7165f74:92fe8ea0:fa31b949:874f8ea2:19620875:490a9d4e

0x800a138f - JavaScript runtime error: Unable to get property 'getElementsByTagName' of undefined or null reference

Adarsh
Top achievements
Rank 1
 asked on 09 Aug 2017
1 answer
178 views

Hi Team,

I have a usercontrol having Loding Panel:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
    EnableAJAX="true">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdSummary" LoadingPanelID="ralp1" />
                <telerik:AjaxUpdatedControl ControlID="pnlEditor" LoadingPanelID="ralp1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

<asp:Panel runat="server" ID="pnlEditor" CssClass="editor">

<asp:Button ID="cmdSave" CssClass="GeneralButton" runat="server" Text="Save/Update"
                                    OnClientClick="clearErrors(); if(!Validate())return false; updateChanges(); return false;" />

</asp:Panel>

 

<telerik:RadGrid ID="grdSummary" runat="server" AutoGenerateColumns="false"

        Skin="Default" GridLines="None" AllowAutomaticUpdates="false"
        ShowStatusBar="true" OnNeedDataSource="grdTargetSummary_NeedDataSource" OnDataBound="grdTargetSummary_DataBound"
        OnItemDataBound="grdTargetSummary_ItemDataBound">
        <MasterTableView DataKeyNames="TrgtID" ClientKeyDataNames="TrgtID">
            <Columns>....

In Aspx page, I am having below code as well as the above usercontrol

<td>
  <asp:TextBox ID="txtDate" runat="server" CssClass="Calender1" />
    <div id="dateWarning" class="ErrorText">
    </div>
    <ajaxToolkit:CalendarExtender ID="txtDate_CalendarExtender" runat="server"
    Enabled="True" TargetControlID="txtDate" />
 </td>

When I select date then the LoadingPanel will visible indefinitely. It happens in EDGE Browser only.

Earlier I had 2009 Telerik.web.ui dll but now I have upgraded to 2017 but still same issue occurs.

Please help me on this.

Thanks in advance.

 

Eyup
Telerik team
 answered on 09 Aug 2017
0 answers
142 views

Hello,

 

Iam using Rad DatePicker contis and its OndateSelected event is not working / not firing. I wanted to hide control on date change and the event is not being fired. Here is my control and its attributes.

 <telerik:RadDatePicker AutoPostBack="true"   OnSelectedDateChanged="webLink_SelectedDateChanged" 
                ID="webLink" runat="server" ShowPopupOnFocus="false" EnableShadows="false"  Visible="true"
                Width="200px">
            <clientevents OnDateSelected="DateSelected" />                      
                  <Calendar ID="Calendar1" runat="server" EnableKeyboardNavigation="true" EnableMultiSelect="false" />
                    <DatePopupButton CssClass="adjustdate" ImageUrl="../../images/calendar.png" HoverImageUrl="../../images/calendar.png"
                    Visible="true"   ToolTip ="<%$ Resources: Timetable, CALENDAR_TOOLTIP %>" Style="display:inline-block"  />
        </telerik:RadDatePicker>   </span> 

 

function DateSelected(sender, e) {
                $("#ctl00_ContentPlaceHolder1_webLink_dateInput").hide();
                $("#ctl00_ContentPlaceHolder1_webLink_dateInput").parent().parent().attr('style', 'display:none;');
            }

t
Top achievements
Rank 1
 asked on 09 Aug 2017
0 answers
67 views

i want to add item template ( edit & delete) in grid  

if if press edit button the edit panel appear to edit the selected row 

thanks 

Muhammad
Top achievements
Rank 1
 asked on 08 Aug 2017
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?