Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
126 views

I have a pie chart with many slices and want to set the legend on the bottom of the chart with Vertical orientation of all the items.

If I set the legend position to right or left, the vertical orientation of the items works fine, but will not work on top or bottom of the chart. Is there a work around for this or will I have to manually create my own legend in a table below the chart?

Jen
Top achievements
Rank 1
 answered on 09 Sep 2016
6 answers
3.3K+ views
Hi 

I want to change radgrid default pageSize programmatically.  Basically I want to give different radgrid PageSizes to different users. 
after reloading the page it goes back to original default pageSize. 

I'm using  < PagerStyle Mode="NextPrevNumericAndAdvanced"  . 
I don't want to use RadComboBox dropdown for pageSize. 

Cheers
Has
Top achievements
Rank 1
 answered on 09 Sep 2016
2 answers
146 views

I've been trying to implement a RegularExpressionValidator for a textbox in my RadGrid. Edits and Inserts happen using the InPlace editor. They are not automatic, I deal with them via code. If I go into Edit Mode I cannot exit Edit Mode or do anything until I fill in the empty fields in the InPlace Editor and either use the Insert or Cancel command. Using the debugger I've determined that no postbacks happen while the grid is in edit mode and there are empty fields in the inplace editor. Not quite sure what to do, cannot find similar issues in the forums.

 

This is my OnDataBound event that implements the RegularExpressionValidator:

 

            'if the grid is currently being edited
            If e.Item.IsInEditMode Then
                ToggleControlVisability(e)
                SetDefaultRateValue(e)

                Dim eItem = TryCast(e.Item, GridEditableItem)
                Dim editor = TryCast(eItem.EditManager.GetColumnEditor("rate"), GridTextBoxColumnEditor)
                Dim cell = TryCast(editor.TextBoxControl.Parent, TableCell)
                Dim rev = New RegularExpressionValidator()
                rev.ControlToValidate = editor.TextBoxControl.ID
                rev.ValidationExpression = "[0-9]*\.?[0-9]*"
                rev.CssClass = "text-danger"
                rev.ErrorMessage = " Please provide a valid number."
                cell.Controls.Add(rev)
            End If

 

 

My Cancel command (which does not get executed):

 

        ToggleCommandColumns()
        rgJobItems.MasterTableView.ClearEditItems()
        rgJobItems.Rebind()

 

 

ToggleCommandColumns is a custom function that swaps button visibility so it should not be affecting anything. Same goes for ToggleControlVisability, it just makes some controls visible on the page. 

I only started encountering this issue when I put in a RegularExpressionValidator. If I take it out, it works fine (I can cancel the editor at any time).

Any support would be appreciated. 

Raulis
Top achievements
Rank 1
 answered on 09 Sep 2016
1 answer
64 views
Hi,
I have faced with the issue when using the link manager.
I have entered a few text lines to the editor, select this text and click Hyperlink manager button, Rad editor shows the dialog. Usually, hyperlink tab of this dialog contains such fields as URL, Text, ID etc. However,  in the described scenario the Text field was hidden. 

I have attached the screenshot of the Hyperlink manager dialog

Best regards,
Rita
Marin Bratanov
Telerik team
 answered on 09 Sep 2016
6 answers
144 views
I have a project with master pages. On the pages using master page the rad checkbox renders "double", see attached file. On the pages not using master pages the checkbox renders properly. How do you suggest fixing this issue?
Danail Vasilev
Telerik team
 answered on 09 Sep 2016
1 answer
128 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
255 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
49 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
181 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
154 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?