Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views

Is there any way to have children items keep the same with (100%) of its parent root item?

Have an issue with a multi-language site where the children needs to match in width, please see image where you can see the root a.rmExpanded item has a blue border on the sides and it needs to match the width of its children at all times.

 

 

Anton
Telerik team
 answered on 09 Sep 2016
3 answers
264 views

Hello. I have this code where I'm trying to pop-up a small window with javascript from my dynamic list. My code is below, I get two pop-up windows, one (resim.aspx) and another one that has "javascript:my_window=window.open('Resim.aspx?ID=12345678','my_window','width=300,height=300');my_window.focus()" on the address bar. How can I make this sure that only one pop-up window comes up. Thank you.


foreach (String strC in ServiceList)

{

TreeNode newNode = new TreeNode(strC.ToString());

newNode.NavigateUrl = "javascript:my_window=window.open('Resim.aspx?ID=12345678','my_window','width=300,height=300');my_window.focus()"

            newNode.Target = "_blank";

            newNode.SelectAction = TreeNodeSelectAction.Select;

            newNode.PopulateOnDemand = false;

            node.ChildNodes.Add(newNode);

)

Ivan Danchev
Telerik team
 answered on 09 Sep 2016
2 answers
56 views

I'm trying to display both percentage and amount with a break point in between.  This is what i tried and a couple more, but they are not working.  Please help.

ClickSeries = New PieSeries

ClickSeries.TooltipsAppearance.ClientTemplate = "#= kendo.format(\'{0:P0}\', percentage)#<br />#={0:N0}#"

Joseph
Top achievements
Rank 1
 answered on 08 Sep 2016
1 answer
192 views

Hi,

I am using rad async upload controle, is it possible to get file size when file is dragged and dropped?

Rumen
Telerik team
 answered on 08 Sep 2016
3 answers
161 views

Hi,

I am going through an issue with Telerik controls, all my Telterik Control because disabled, like RadEditor, RadListBox and RadAutoComplete. I installed the Telerik Version=2016.1.113.35, before that I was having the Telerik Version=2015.2.623.45. After installing I converted all my Application and its related components from .Net 3.5 to .Net 4.0, now all my Telerik Controls became disabled, the ones which were working before also became disabled.

Any help what could the reason and solution for it, any think like a link, a code snippet or even a suggestion would be helpful.

Here is my code:
 
Hide   Expand    Copy Code
<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ResearchStudiesAdmin.Website.Login" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings> 
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radLongDesc" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
 
    </telerik:RadAjaxManager>
 
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
 
<pre>
    <div class="demo-containers">            
        <telerik:RadEditor Height="300px" Width="700px" ID="radLongDesc" runat="server" ToolbarMode="Default"
            StripFormattingOptions="all" ContentAreaMode="Div">
            <tools>
                            <telerik:EditorToolGroup Tag="MainToolbar">
                                <telerik:EditorTool Name="Print" ShortCut="CTRL+P" />
                                <telerik:EditorTool Name="AjaxSpellCheck" />
                                <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                                <telerik:EditorTool Name="Cut" />
                                <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                                <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                                <telerik:EditorTool Name="FormatStripper" />
                                <telerik:EditorTool Name="PasteStrip" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                                <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup Tag="InsertToolbar">
                                <telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
                                <telerik:EditorTool Name="Unlink" ShortCut="CTRL+SHIFT+K" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup Tag="Superscript">
                                <telerik:EditorTool Name="Subscript" />
                                <telerik:EditorTool Name="InsertParagraph" />
                                <telerik:EditorTool Name="InsertHorizontalRule" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                                <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                                <telerik:EditorTool Name="JustifyLeft" />
                                <telerik:EditorTool Name="JustifyCenter" />
                                <telerik:EditorTool Name="JustifyRight" />
                                <telerik:EditorTool Name="JustifyFull" />
                                <telerik:EditorTool Name="JustifyNone" />
                                <telerik:EditorTool Name="Indent" />
                                <telerik:EditorTool Name="Outdent" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="InsertOrderedList" />
                                <telerik:EditorTool Name="InsertUnorderedList" />
                                <telerik:EditorTool Name="ToggleTableBorder" />
                            </telerik:EditorToolGroup>
                        </tools>
        </telerik:RadEditor>            
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Long Description."
            CssClass="ErrorMsg" ControlToValidate="radLongDesc" ValidationGroup="vgSave" Display="Dynamic"></asp:RequiredFieldValidator>
    </div>
</div>

Thanks in advance.

Marin Bratanov
Telerik team
 answered on 08 Sep 2016
5 answers
193 views
So I am trying to set the ImagesFolderPath at runtime, but am having problems please help.

Let me setup the scenario first.... I have a webpage that has several different controls.  One control is a dropdown list that contains numeric codes.  When a code is selected it populates the rest of the page.  I want to set the ImagesFolderPath, once this numeric code is selected.  I have tried putting code in the Load and Databinding events the ImageGallery never reloads.  The control just sits on the page and does not appear to ever reload or rebind with the new ImagesFolderPath.


Please help


Doug
Eyup
Telerik team
 answered on 08 Sep 2016
1 answer
125 views

I have two RadDatePicker's. One holds a "date sent" value and another one a "date paid". The date sent value has to be before the date paid AND the date paid RadDatePicker has to be disabled until a date sent value has been set in a form. How would I achieve this? I thought a CompareValidator on the second control would prevent postback if the first input is empty but it seems that's not the case.

 

FYI I cannot use client side scripts on the same aspx page. I have a separate JavaScript folder that holds all my scripts and I cannot call $find("<%=RadDatePicker1.ClientID%>") . 

 

Help would be greatly appreciated. 

Raulis
Top achievements
Rank 1
 answered on 08 Sep 2016
3 answers
180 views

I have set all controls rendering mode to lightweight via the web config:

<add key="Telerik.Web.UI.RenderMode" value="lightweight" />

 

Running the site locally in chrome and in IE11 renders the output lightweight as as expected.

Once deployed to a server and set in IE as an intranet site, the controls are then rendered classic.

Chrome renders as lightweight, but IE seems then seems ignore this global setting in the web config. The page has the relevant meta tag to switch the document mode to IE=Edge but the rendered HTML is still in classic. Meaning all of our CSS is now useless.

Could someone please point out what I am missing here.

Thanks

 

Additional Info:

  • The controls don't have individual render mode properties on them.
  • The setting is still there in the web config after deployment.

 

 

 

Rumen
Telerik team
 answered on 07 Sep 2016
3 answers
123 views

I am trying to show toolbar dropdown text like:

 

   Dim dropDown As RadToolBarDropDown = New RadToolBarDropDown("PageSize")
            dropDown.Text = GetGlobalResourceObject("Insight", "Per pagina")

This ends up with the following sourcecode:

 

<span class="rtbText rtbHidden">Per pagina</span>

What could be wrong here? Skin = Material 2016.2.607.45

 

Marc

Vessy
Telerik team
 answered on 07 Sep 2016
9 answers
1.5K+ views
How can I programatically set the default pagesize in a grid depending on the number of items in the grid? I want it to be proportionate to the number of total items. Basically limiting the paging to a certain number of pages, rather than the number of items per page. I’ve seen some examples to do this when using the combobox for the PagerStyle, but we’re using the “NextPrevNumericAndAdvanced” and I want it to be the default value. Thanks.
Marin Bratanov
Telerik team
 answered on 07 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?