Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
83 views
Hi all,
here my code:
<%@ Page Title="" Language="C#" MasterPageFile="~/DrgiorginiAdmin.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DrGiorginiAdmin.Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolder1" runat="server">

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
            SelectCommand="SELECT * FROM [Category]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
            SelectCommand="SELECT DISTINCT [Year] FROM [Data]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
            SelectCommand="SELECT SC.Name, D.Year, D.Value FROM (Category AS C INNER JOIN Subcategory AS SC ON C.Id=SC.Category_id) INNER JOIN Data AS D ON SC.ID=D.SubCategory_Id WHERE C.ID=@Id ORDER BY C.ID, SC.ID, Year;">
            <SelectParameters>
                <asp:ControlParameter ControlID="dropDownCategory" DefaultValue="2" Name="Id" PropertyName="SelectedValue" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
            SelectCommand="SELECT SUM(Value) AS [Sum], C.Name FROM (Category AS C INNER JOIN Subcategory AS SC ON C.Id=SC.Category_id) INNER JOIN [Data] AS D ON SC.ID=D.SubCategory_Id WHERE [Year]=@Year GROUP BY C.ID, C.Name ORDER BY C.ID">
            <SelectParameters>
                <asp:ControlParameter ControlID="dropDownYears" DefaultValue="1996" Name="Year" PropertyName="SelectedValue" />
            </SelectParameters>
        </asp:SqlDataSource>

        <strong>Binding to a DataSource Control - bar series and grouping</strong><br />
        <label for="dropDownCategory">
            <asp:Label ID="Label2" runat="server" class="text">GDP by Industry:</asp:Label>
        </label>
        <asp:DropDownList ID="dropDownCategory" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropDownCategory_SelectedIndexChanged"
            Width="225px" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="Id">
        </asp:DropDownList><br />
        <telerik:RadChart ID="RadChart1" runat="server" Width="710px" OnDataBound="RadChart1_DataBound"
            DataGroupColumn="Name" AutoTextWrap="true" DataSourceID="SqlDataSource3" Skin="LightBlue">
            <Legend>
                <Appearance GroupNameFormat="#VALUE">
                </Appearance>
            </Legend>
            <PlotArea>
                <XAxis DataLabelsColumn="Year">
                </XAxis>
            </PlotArea>
        </telerik:RadChart>
        <br />
        <strong>Binding to a DataSource control - pie series</strong>
        <br />
        <asp:Label ID="Label1" runat="server" class="text">GDP by Year: </asp:Label>
        <asp:DropDownList ID="dropDownYears" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource2"
            DataTextField="Year" DataValueField="Year">
        </asp:DropDownList><br />
        <telerik:RadChart ID="RadChart2" runat="server" DefaultType="Pie" Width="710px" AutoTextWrap="true"
            OnItemDataBound="RadChart2_ItemDataBound" DataSourceID="SqlDataSource4" Skin="LightGreen">
            <Appearance Dimensions-Width="710px">
            </Appearance>
            <Series>
                <telerik:ChartSeries Name="Series 1" Type="Pie" DataYColumn="Sum">
                    <Appearance LegendDisplayMode="ItemLabels">
                    </Appearance>
                </telerik:ChartSeries>
            </Series>
        </telerik:RadChart>
        <br />
        <!-- content end -->

</asp:Content>

This page is enclosed inside a MasterPage.
When I change the value in the dropdownlist happen two strange facts (probably a context to another):
part of the layout is modified and after you run the command to change the content to the chart at the bottom right scroll bar begins to load (do not know what).
I know it will be stupid, but because you are noob asking for help.
Thanks in advance!

DrGiorgini
Top achievements
Rank 1
 answered on 20 Jan 2011
7 answers
66 views
I have a scheduler being used for a number of functions, diary, leave etc. In some instances (the majority of browsers) when the cursor is moved over a date it is not always highlighting, and if a double click is made into a day it opens up with the start date of the month shown, not the date that was clicked in.

If the day link is hovered over first then the day highlights, and once this happens some of the other dates also highlight correctly, but not all of them, and it is not consistent.

This seemed to start happening a few Telerik releases ago - currently still shown in 2010.Q3 SP2 release as well.

I can provide a url where this behaviour can be seen if this helps at all.  This is becoming a major issue for some of my customers now who are getting annoyed that they cannot always enter data for the correct date.

David Penny
David Penny
Top achievements
Rank 2
 answered on 20 Jan 2011
2 answers
116 views
Hello,

I have created RadFilterDataFieldEditor by following article: http://www.telerik.com/community/forums/aspnet-ajax/filter/error-when-building-custom-radfilterdatafieldeditor.aspx
It works good if the FilterContainerID property is not set. If I set this property to my RadGrid it does not work correctly.
Editor is shown ok if I add filter expression, but after I click the Apply button, default editor is shown instead RadFilterDataFieldEditor. After next postback I get error with invalid viewstate data.

Here is the Code:
<telerik:RadFilter runat="server" ID="filter" FilterContainerID="articles" ShowApplyButton="true"
    OnFieldEditorCreating="filter_FieldEditorCreating">
    <FieldEditors>
        <telerik:RadFilterTextFieldEditor FieldName="Title" />
        <km:RadFilterDropDownEditor DataSourceID="dsStates" DataTextField="Name" DataValueField="ArticleStatusId"
            FieldName="StatusId" />
        <telerik:RadFilterTextFieldEditor FieldName="AuthorFullName" />
        <telerik:RadFilterNumericFieldEditor FieldName="Rating" />
        <telerik:RadFilterNumericFieldEditor FieldName="TimesRated" />
        <telerik:RadFilterDateFieldEditor FieldName="CreatedDate" />
        <telerik:RadFilterDateFieldEditor FieldName="ModifiedDate" />
    </FieldEditors>
</telerik:RadFilter>
<telerik:RadGrid ID="articles" runat="server" OnNeedDataSource="articles_NeedDataSource"
    EnableLinqExpressions="false" ShowFooter="True" AllowFilteringByColumn="True"
    AllowSorting="True" ShowGroupPanel="True" AllowPaging="true" PageSize="10">
    <MasterTableView AutoGenerateColumns="False" EnableHeaderContextMenu="true" IsFilterItemExpanded="false">
        <Columns>
            <telerik:GridBoundColumn DataField="Title" HeaderText="Title" />
            <telerik:GridDropDownColumn DataField="StatusId" HeaderText="Status" DataSourceID="dsStates" ListTextField="Name" ListValueField="ArticleStatusId" />
            <telerik:GridBoundColumn DataField="AuthorFullName" HeaderText="Author" />
            <telerik:GridBoundColumn DataField="Rating" HeaderText="Rating" />
            <telerik:GridBoundColumn DataField="TimesRated" HeaderText="TimesRated" />
            <telerik:GridBoundColumn DataField="CreatedDate" HeaderText="Created" />
            <telerik:GridBoundColumn DataField="ModifiedDate" HeaderText="Modified" />
        </Columns>
    </MasterTableView>
    <GroupingSettings ShowUnGroupButton="true" CaseSensitive="false" />
    <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" />
</telerik:RadGrid>

Codebehind:
protected void filter_FieldEditorCreating(object sender, RadFilterFieldEditorCreatingEventArgs e)
{
    if (e.EditorType == "RadFilterDropDownEditor")
    {
        e.Editor = new RadFilterDropDownEditor();
    }
}

Thank you
Jiri
JiriSchmitt
Top achievements
Rank 1
 answered on 20 Jan 2011
1 answer
129 views
Hi guys,

i'm using the RADFileExplorer control and i'm having some problem with localization.
I need to change the language of the control in my page according with the one of the user (selected from db).
So i added the App_GlobalResources folder to my solution, copied some localized resx files (es: RadEditor.Dialogs.es-ES.resx, RadEditor.Dialogs.it-IT.resx, ecc ...). In the page_load event i set the language radfileexplorer.Language = 'it-IT', for example, but nothing happen! But if i rename the it file to RadEditor.Dialogs.resx the control is translated!
I'm missing something ?

Best regards,
GE
gianemilio redaelli
Top achievements
Rank 1
 answered on 20 Jan 2011
1 answer
45 views
3 answers
75 views
Hi

I have a very large report which is divided into 60 pages. I only show the footer on the last page.
If I move to for example page 10 and press export, everything but the footer (aggregate ="sum") will be exported. I always work if I export from the first page.

What have I missed?


Thanks in advance

/Teresia
Princy
Top achievements
Rank 2
 answered on 20 Jan 2011
1 answer
77 views
The telerik radgrid rows are overlaping as you can see in the attachement. Can anyone got this problem and if you know the fix please share with me.
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2011
1 answer
91 views
I assumed I would be able to find a solution to this issue very easily, but unfortunately I haven't been able to.

I have a pie chart that I want to simply display only 2 pieces.  I have a sql command that uses the UNION command to join my two queries into one column for the chart.  That is working fine, however I do not know how to change the pie charts legend to show the 2 colors, and add custom text for each color.

I changed the LegendDisplayMode to show ItemLabels.  Also, I am trying to set the legend text by using:
Protected Sub RadChart1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart1.ItemDataBound
        e.SeriesItem.Name = "Purchases"
        e.SeriesItem.Name = "Returns"
    End Sub

This obviously only shows "Returns" on the legend, and does so twice for both slice colors.  How do I change both of them?
Evgenia
Telerik team
 answered on 20 Jan 2011
5 answers
159 views

Hello.

I'm converting a SharePoint web farm from MOSS 2007 to SharePoint 2010 Enterprise, and my client uses the RadEditor for MOSS.  We currently have RadEditor 5.8.4.0 (radeditormoss.wsp) installed.  On one of our sites, we can't put any publishing pages in edit mode without getting the following error.  Does anyone know what might be causing this error?

01/13/2011 11:10:44.51  w3wp.exe (0x03D0)                        0x1414 SharePoint Foundation          Runtime                        tkau Unexpected System.MissingMethodException: Method not found: 'Boolean Microsoft.SharePoint.Publishing.WebControls.HtmlEditor.get_DisableBasicFormattingButtons()'.    at Telerik.SharePoint.RadHtmlField.SetEditorProperties()     at Telerik.SharePoint.RadHtmlField.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoi... faaa8390-d548-4d90-a646-4d9a457df63e

Thanks!
Stanimir
Telerik team
 answered on 20 Jan 2011
2 answers
95 views
I have FileExplorer reading from a virtual path setup in IIS with Integrated Windows Authentication.  It displays the files but when a user clicks to open one it prompts for user/pass info and nothing works, it keeps prompting.

what am I missing?
Dobromir
Telerik team
 answered on 20 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?