Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
Is it possible to set up a calculated field to show the percentage difference between values of the same field?

Example:

Jan Value    % Diff between Dec-Jan   Feb Value    % Diff between Jan-Feb    Mar Value    % Diff between Feb-Mar....
Konstantin Dikov
Telerik team
 answered on 22 Dec 2014
1 answer
143 views
2014Q3 controls.

Field definitions

<Fields>
    <telerik:PivotGridRowField Caption="Company Name" DataField="sEntityName"
        UniqueName="sEntityName">
    </telerik:PivotGridRowField>
    <telerik:PivotGridRowField Caption="Material" DataField="Material"
        UniqueName="Material">
    </telerik:PivotGridRowField>
    <telerik:PivotGridColumnField Caption="Year" DataField="SubmissionYear"
        UniqueName="SubmissionYear">
    </telerik:PivotGridColumnField>
    <telerik:PivotGridColumnField Caption="Period" DataField="Period"
        UniqueName="Period">
    </telerik:PivotGridColumnField>
    <telerik:PivotGridAggregateField Caption="KG" DataField="KG"
        GrandTotalAggregateFormatString="{0:###,###.00}" UniqueName="KG" CellStyle-CssClass="ptRJ" TotalFormatString="{0:###,###.00}" DataFormatString="{0:###,###.00}">
    </telerik:PivotGridAggregateField>
    <telerik:PivotGridAggregateField DataField="% of Total" CalculationDataFields="KG,TotalKG" CalculationExpression="{0}/{1}" DataFormatString="{0:p}">
    </telerik:PivotGridAggregateField>
</Fields>

KG = amount of a certain material for one company
TotalKG = amount of a certain material for all companies

The % of Total column is working properly for detail rows and subtotal rows.  However for the grand total row I get 6.25%, which is 100 / 16 (the number of companies) / 100.  I am expecting to see 100% as the Grand Total of Sum of KG equals the total of all materials for all companies. Bug or something else?
Konstantin Dikov
Telerik team
 answered on 22 Dec 2014
2 answers
117 views
The names of groups are rendered in a div element with class 'rocItemField'.
In my system, I have some javascript to handle the click event on this text to open a popup to edit the group name, etc.
I need this div to be keyboard accessible, but because its a div you can't tab to it.

Is there a way to define the template for a group on an orgChart, like the way you can define a template for an item?
Then i can set the group name within an anchor and have it keyboard accessible.

or can anyone recommend another approach? eg hack change all divs of class rocItemField into anchors with href='#' ?
Peter Filipov
Telerik team
 answered on 22 Dec 2014
1 answer
133 views
Hi,
I created a pivot with a chart like this demo
http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/chartintegration/defaultcs.aspx
and I was wondering if is it possible to export both object in excel/word/pdf .. I don't know.. any format is fine.

Thanks
Kostadin
Telerik team
 answered on 22 Dec 2014
3 answers
139 views
Hi, I have radasynupload control in datagrid. I have one button(say, button1) in another cell of a datagrid. My requirement is to continue async upload even after the button1 is clicked. I have used postbacktrigger property to add the control ids on which the rad control should postback. However the file upload stops after button1 is clicked.
Also, I read that Radasyncupload will not continue when you re-bind the datagrid. There is Ajax uploader control which holds the state even after data grid is refreshed if the control is added in update panel. Is there a way to do the same with Telerik radasync.

thanks
Hristo Valyavicharski
Telerik team
 answered on 22 Dec 2014
2 answers
95 views
Hi, i need to know how to create/copy a node to a different parent.
in my tree structure i have a root and groups. when i'm  down inside a group i also want to make a copy of the node and add it to a different group.

in my code i have this which add the pending user node to the GroupNode.

                    RadTreeNode nodePending = new RadTreeNode()
                    {
                        Value = group.Id.ToString() + "|" + invitation.Id.ToString(),
                        ForeColor = System.Drawing.Color.Gray
                    };

                   GroupNode.Nodes.Add(nodePending);

i would like to add "nodePending" to a different group which was create here in a different loop

                RadTreeNode nodeUser = new RadTreeNode()
               {
                Text = "(Users)",
               };

the problem is if i use the following code below it does not like me putting in "nodeuser.Nodes.add"

                   nodeUser.Nodes.Add(nodePending);


suggestions?




Peter Filipov
Telerik team
 answered on 22 Dec 2014
1 answer
483 views
Hi..

I'm looking to set the edit mode of a particular column.. I have Editforms Mode setup on rest of the RadGrid which I would like to retain.  I wish to load the page with this column in batch edit mode so I can type a reference and use this to extract information in each row..

How can I dynamically set the edit mode to batch for this particular column, whilst retaining the editforms mode for my other columns..?

Dave
Top achievements
Rank 1
 answered on 22 Dec 2014
1 answer
171 views
Hi All

This is my scenario

I have a RadGrid, then I have an EditFormTemplate and inside I have a RadListBox, I'm able to select a value from codebehind, but I want to scroll the ListBox to the selected when the EditForm is showing, I followed this post  but I'm not able to do it.

Here is my test code 

ASP
<telerik:RadGrid ID="Radgrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="false"
    AutoGenerateEditColumn="true">
    <MasterTableView>
        <EditFormSettings EditFormType="Template">
        <PopUpSettings Width="620px" Modal="false" Height="550px" />
            <FormTemplate>
                <telerik:RadListBox ID="RadListBox1" runat="server" DataSource="DS" OnClientSelectedIndexChanged="selectedIndexChanged">
                </telerik:RadListBox>
            </FormTemplate>
        </EditFormSettings>
        <Columns>
            <telerik:GridBoundColumn DataField="OrderID" HeaderText="OrderID">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Code Behind
Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
        If TypeOf e.Item Is GridDataItem Then
            Dim editItem As GridDataItem = DirectCast(e.Item, GridDataItem)      
            Dim ddlCurrency As RadListBox = DirectCast(editItem.FindControl("RadListBox1"), RadListBox)
 
            If ddlCurrency IsNot Nothing Then
                Dim item As RadListBoxItem = ddlCurrency.FindItemByText(strCurrency)
                If item IsNot Nothing Then
                    ddlCurrency.SelectedValue = hdnValue.Value
                End If
            End If
         End If
     End Sub

Javascript
function selectedIndexChanged(sender, args)
{
    var item = args.get_item();
    item.scrollIntoView();
}

I know that I can only use the scrollIntoView() inside JavaScript but the function  selectedIndexChanged is not firing, is there a way to scroll when I select the item in the code behind or server-side? 
Thanks in advance
Peter Filipov
Telerik team
 answered on 22 Dec 2014
3 answers
100 views
Hi,

i'm using the RadEditor control in a sharepoint 2010 publishing page and when the page loads are made two requests and the page takes a long time to load. Using firebug I can see that accessing the page 2 requests are made.

If i remove the control the page is properly loaded and only one request is made.

I'm using RadControls for ASP.NET Ajax Q1 2009  (Telerik.Web.UI, Version=2009.1.527.20.)
Ianko
Telerik team
 answered on 22 Dec 2014
4 answers
161 views
Well I'm struggling with a silly issue: a very simple form contains a tabstrip. If scrolling si enabled, then the tabs just dosn't show up!

Is this a bug or am I missing something simple ??? I've put together a test page that is as simple as possible that reproduces the problem. Can anyone tell me what's going on please ?

Here is the page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Page sans titre</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"   
        EnableTheming="True" OutputCompression="AutoDetect">  
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                <UpdatedControls> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <div> 
    <table width="100%">  
        <tr> 
            <td align="center">  
                <table> 
                    <tr> 
                        <td> 
                            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="7"   
                                Skin="Inox" Width="600px" ScrollButtonsPosition="Middle"   
                                ScrollChildren="True">  
                                <Tabs> 
                                    <telerik:RadTab runat="server" Text="Aspects physiques">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Aptitudes">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Projet">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Attentes">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Vie quotidienne">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Fiche Médicale">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Passeport">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Fiche Médicale" Selected="True">  
                                    </telerik:RadTab> 
                                    <telerik:RadTab runat="server" Text="Passeport">  
                                    </telerik:RadTab> 
                                </Tabs> 
                            </telerik:RadTabStrip> 
                            <telerik:RadEditor ID="RadEditor1" runat="server" Skin="WebBlue" ToolsFile="~/Xml/EditTools.xml" 
                                Language="fr-FR" EnableResize="False" Enabled="False">  
                                <Languages> 
                                    <telerik:SpellCheckerLanguage Code="fr-FR" Title="French" /> 
                                </Languages> 
                                <Content> 
                                </Content> 
                            </telerik:RadEditor> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
    </table> 
    </div> 
    </form> 
</body> 
</html> 
 
Peter Filipov
Telerik team
 answered on 22 Dec 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?