Telerik Forums
UI for ASP.NET AJAX Forum
20 answers
502 views
I am trying to make a grid alphabetic paging.
I have seen the demo in (Alphabetic Pager) http://demos.telerik.com/aspnet-ajax/grid/examples/programming/alphabeticpaging/defaultcs.aspx .

Iam binding the grid using  NeedDataSource event.
How can I pass the below select parameter to the program while performing the SELECT query.
<SelectParameters>
                <asp:Parameter Name="Letter" DefaultValue="%" />
</SelectParameters> 

I have just started using the telerik controls. Please help me on this.
Thanks,
Soumya



Eyup
Telerik team
 answered on 10 Aug 2017
19 answers
1.6K+ views
When using the FileExplorer control with a RadWindow as sort of FileDialog, is it possible to just select a folder path. I dont want to select a specific file, just a folder.


Thanks
Jason
Rumen
Telerik team
 answered on 10 Aug 2017
7 answers
187 views

When I add the following CSS to my aspx page the RadRating becomes unselectable in Safari-only (confirmed on ipad and iphone). Other browsers are fine.

html, body {
     height: 100%;
}

 

This CSS is necessary on some pages that also require a RadRating tool.

The page is running here: https://alpha.changeyourenergy.com/mgmt/Testing/radrating_no_master.aspx

The CSS in question is located here: https://alpha.changeyourenergy.com/style/revamp.css?v=151030.01

Note that if I tap the screen many times I can sometimes get the stars to highlight on Safari, but it is very difficult, inaccurate, and requires persistence.

Full ASPX page (the .cs page is essentially blank and not included here)

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="radrating_no_master.aspx.cs" Inherits="mgmt_Testing_radrating_no_master" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>No Master</title>
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 
    <style type="text/css">
        .ratingClass {
            position: relative;
            top: 100px;
            text-align: left;
            margin: 0 auto;
            padding: 0;
        }
    </style>
 
    <link id="BlowdryCSS" runat="server" rel='stylesheet' type='text/css' href='/style/blowdry.css?v=151030.01' />
    <link id="RevampCSS" runat="server" rel='stylesheet' type='text/css' href='/style/revamp.css?v=151030.01' />   
 
    <link id="GoogleMaterialIcons" href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
 
    <asp:Literal id="JQuery" runat="server" Text='<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>'></asp:Literal>
    <asp:Literal id="JQueryUI" runat="server" Text='<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>'></asp:Literal>
 
    <script async type="text/javascript">
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
        m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-62909613-1', 'auto');
        ga('send', 'pageview');
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="ScriptManager1">
            <Scripts>
                <%-- Google CDN Reference: https://developers.google.com/speed/libraries/ --%>
                <%--<asp:ScriptReference Path="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" />
                <asp:ScriptReference Path="https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js" />--%>
                <%--<asp:ScriptReference Path="<%# Eval("Source.CloudRoot") + "/" + Eval("Source.OneJS") %>" />--%>
                 
                <%--<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />--%>
 
                <%--<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryExternal.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" />--%>
            </Scripts>
        </telerik:RadScriptManager>
 
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="false" />
     
        <div style="height:100%">
        <telerik:RadRating RenderMode="Lightweight" ID="ratingBar" runat="server" Orientation="Horizontal" ItemHeight="24px"
            ItemWidth="20px" CssClass="ratingClass" Skin="Silk" VisibleDuringInit="false">
            <Items>
                <telerik:RadRatingItem Value="1"
                    HoveredSelectedImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    ToolTip="Very Low"></telerik:RadRatingItem>
                <telerik:RadRatingItem Value="2" HoveredImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    HoveredSelectedImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    ToolTip="Low"></telerik:RadRatingItem>
                <telerik:RadRatingItem Value="3" HoveredImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    HoveredSelectedImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    ToolTip="Medium"></telerik:RadRatingItem>
                <telerik:RadRatingItem Value="4" HoveredImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    HoveredSelectedImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    ToolTip="Medium-High"></telerik:RadRatingItem>
                <telerik:RadRatingItem Value="5"
                    HoveredSelectedImageUrl="https://s3-us-west-1.amazonaws.com/changeyourenergy/images/icon/rating-stars-dark-orange-36x54.png"
                    ToolTip="High"></telerik:RadRatingItem>
            </Items>
        </telerik:RadRating>
        </div>
    </form>
 
     
    <script type="text/javascript">     var CloudRoot = "https://d1ululg65bfe3q.cloudfront.net";</script>
    <script src="https://forms.ontraport.com/v2.4/analytics/tracking.js" type="text/javascript"></script>
    <script>        _mri = '80479'; _mr_domain = 'changeyourenergy.ontraport.com'; mrtracking();</script>
     
    <%--<script src="http://d7f84ce2.ngrok.io/vorlon.js"></script>--%>
</body>
</html>
Rumen
Telerik team
 answered on 10 Aug 2017
2 answers
358 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
308 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
136 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
198 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
179 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
101 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
151 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?