Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
175 views
Hi i have registered a src page1.ascx 
<%@ Register Src="~/App_Controls/AddUser.ascx" TagPrefix="uc" TagName="AddUser" %>
and put it as an element in tags on my page.ascx.
<uc:AddUser ID="addUser" runat="server" Visible="false" />
  i use it in RadAjaxManager to be mi AjaxControl.
<telerik:AjaxSetting AjaxControlID="addUser">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgUsers" />
</UpdatedControls>
</telerik:AjaxSetting>
I want to update my grid when the button inside that uc:addUser does a method in code behind. Unfortonately the grid is beeing refresh before the control fires that method. Any ideas?
Maria Ilieva
Telerik team
 answered on 08 Feb 2013
1 answer
189 views

Hello Telerik Team.

I have used “RadTextBox” in my Web Page and i have set the “EmptyMessage” of “RadTextBox”. Besides that i have also applied the width, height, padding and Font-Size to the “RadTextBox”. See the markup of RadTextBox which I have used in Web Page.

<div>

   <telerik:RadTextBox ID="textbox1" runat="server" EmptyMessage="Type Search Text Here"

      Width="610px" SelectionOnFocus="SelectAll" autocomplete="off"

      style="padding: 3px 10px 12px 10px;#padding: 14px 10px 12px 10px;"

      EnableSingleInputRendering = "false" Height="18px" Font-Size="1.3em">

      <EmptyMessageStyle Font-Italic="true" />

   </telerik:RadTextBox>

</div>

Now the problem is when the page gets loaded in the browser, initially for the fraction of second the “EmptyMessage” is displayed in the small font-size and then it come back to the original font size. In other words we can say, when the page gets loaded in the browser, the style specified to “RadTextBox” is not gets applied which cause the noticeable flicker in text or we can say the text appears at wrong place and then it moves to the correct place.

As shown in following screenshot the “EmptyMessage” shown in small font size also it is not in italic style and appears at wrong place.

After fraction of second all the specified style will get applied to “RadTextBox”. Please refer following screenshot.

The same thing is happened when “RadTextBox” having some text instead of “EmptyMessage”. Here also when page gets loaded the user input text will first appears at wrong place and then come back to original position.

The Telerik Version we are using: 2012.2.912.35

(Note: We have used the CSS to set style of controls which are used in our application but we haven’t declare any CSSCLASS inside CSS file for “RadTextBox”)

Please suggest any workaround to get rid from the above mentioned issue.  

 

Thanks,

Ashish

Eyup
Telerik team
 answered on 08 Feb 2013
2 answers
80 views
Please help me i have already 2 days on this and cant find solution to the problem..

I am not posting any code by now, because i have already striped almost everything to the minimum as you can see in screenshot.

My last attempt was remove all scripts and css and use a normal asp scriptmanager as you can see in screenshot,

I just cant understand why this is happening only in ie6, ie7, ie8 and ie9 All other browsers IE10, Opera, Firefox, Chrome works ok.

I have already tried in several clients the results are the same. i had to install firefox on all of them to use the application.

Please if help me as ASAP... please!

Forgot to mention: this is a radtoolbar, but other controls that i use, radwindow, radcombobox, etc.. all fail the css...
Bozhidar
Telerik team
 answered on 08 Feb 2013
1 answer
110 views
Hello
I have a page where I have a RadGrid and what I want is to insert new records into a DB, but when the event is fired PerformInsert, and extract the value of each field in the RadGrid, values ​​do not take me, and I have a column GridDropDownColumn GridBoundColumn column when inserting a new record and enter and select data, do not take me the values ​​that I select or income that may be happening?
Copied the code

Thanks,


 aspx
<%@ Page Title="" Language="VB" MasterPageFile="~/Modulos/Comun/PaginaMaestra.master" AutoEventWireup="false" CodeFile="DetalleOrdenTrabajo.aspx.vb" Inherits="Modulos_Inicio_DetalleOrdenTrabajo" %>

<%@ Register Src="ControlUsuario/SchedulerAdvanceForm.ascx" TagName="SchedulerInsertForm" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContContenido" runat="Server">
    <telerik:RadCodeBlock runat="server" ID="rcb1">
    </telerik:RadCodeBlock>
    <telerik:RadSplitter
        ID="RadSplitter1" runat="server" Orientation="Horizontal"
        BorderSize="0" Width="100%" Height="100%" Skin="Transparent">
        <telerik:RadPane ID="RadPane1" runat="server" BorderSize="0" Width="100%" Height="35" Scrolling="None" MaxHeight="35" MinHeight="35">
            <table id="botonera_titulo">
                <tr>
                    <td id="botonera">
                        <telerik:RadToolBar ID="RadToolBar1" runat="server" EnableEmbeddedSkins="false">
                            <Items>
                                <telerik:RadToolBarButton
                                    runat="server" CssClass="xbotoneratb" FocusedCssClass="botoneraFocused"
                                    Font-Name="metro" ForeColor="#FFFFFF" ImageUrl="~/Imagenes/savemetro.png"
                                    Text="Grabar" Value="guardar">
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton
                                    runat="server" CausesValidation="False" CssClass="xbotoneratb"
                                    FocusedCssClass="botoneraFocused" Font-Name="metro" ForeColor="#FFFFFF"
                                    ImageUrl="~/Imagenes/backmetro.png"
                                    NavigateUrl="~/modulos/inicio/principal.aspx" Text="Cancelar">
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton
                                    runat="server" CssClass="xbotoneratb" FocusedCssClass="botoneraFocused"
                                    Font-Name="metro" ForeColor="#FFFFFF" ImageUrl="~/Imagenes/PrintMetro.png"
                                    Text="Imprimir Acta" Target="_blank" Value="imprimir">
                                </telerik:RadToolBarButton>
                                <telerik:RadToolBarButton
                                    runat="server" CssClass="xbotoneratb" FocusedCssClass="botoneraFocused"
                                    Font-Name="metro" ForeColor="#FFFFFF" ImageUrl="~/Imagenes/comparametro.png"
                                    Text="Comparar" Target="_blank" Value="compara" Enabled="false">
                                </telerik:RadToolBarButton>
                            </Items>
                        </telerik:RadToolBar>
                    </td>
                    <td>
                        <div id="TituloPaginas">Agenda/Inspectores/Orden de Trabajo<asp:Label ID="lbtitulopagina" runat="server"></asp:Label></div>
                    </td>
                </tr>
            </table>

        </telerik:RadPane>
        <telerik:RadPane ID="RadPane2" runat="server">
            <br />
            <div id="MensajeMadatorios">Recuerde que los campos resaltados en <span class="FormulariosTextosRequeridos">ROJO</span>  son de ingreso obligatorio</div>
            <br />
            <div style="text-align: center">

                <br />
                <%--<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%"
                    Width="100%" EnableAJAX="True" HorizontalAlign="NotSet">--%>

                    <fieldset>
                        <legend>Informacion Tarea</legend>

                        <telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="dsDetalleOrdenTrabajo"
                            GridLines="None"  Width="100%"
                            AllowAutomaticUpdates="True"
                            AllowPaging="True" CellSpacing="0" 
                            AutoGenerateColumns="False">
                            <ClientSettings>
                                <Selecting AllowRowSelect="True" />
                            </ClientSettings>
                            <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="top"
                                DataSourceID="dsDetalleOrdenTrabajo" EditMode="InPlace">
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridClientSelectColumn></telerik:GridClientSelectColumn>
                                    <telerik:GridBoundColumn DataField="OrdenTrabajoID"
                                        DataType="System.Int32"
                                        FilterControlAltText="Filter OrdenTrabajoID column"
                                        HeaderText="OrdenTrabajoID"
                                        SortExpression="OrdenTrabajoID"
                                        UniqueName="OrdenTrabajoID" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="CitaID"
                                        DataType="System.Int32"
                                        FilterControlAltText="Filter CitaID column"
                                        HeaderText="CitaID" SortExpression="CitaID"
                                        UniqueName="CitaID" Visible="False">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridDropDownColumn DataField="ProductoId" DataSourceID="dsProductos"
                                        FilterControlAltText="Filter ProductoId column" HeaderText="Producto"
                                        ListTextField="Productoyunidad" ListValueField="ProductoId"
                                        UniqueName="GridDropDownColumn">
                                    </telerik:GridDropDownColumn>
                                    <telerik:GridNumericColumn DataField="Cantidad" 
                                        FilterControlAltText="Filter Cantidad column" HeaderText="Cantidad"
                                        SortExpression="Cantidad" UniqueName="Cantidad">
                                    </telerik:GridNumericColumn>
                                    <telerik:GridBoundColumn DataField="Precintos" 
                                        FilterControlAltText="Filter Precintos column" HeaderText="Precintos"
                                        SortExpression="Precintos" UniqueName="Precintos">
                                    </telerik:GridBoundColumn>
                                </Columns>
                                <CommandItemTemplate>
                                    <asp:LinkButton ID="lnkAdicionar0" runat="server" CommandName="InitInsert"
                                        Visible="<%# RadGrid2.EditIndexes.Count = 0 And Not RadGrid2.MasterTableView.IsItemInserted%>"><img 
                    border="0" src="../../Imagenes/adicionar.gif" /> Nuevo Producto</asp:LinkButton>
                                    <asp:LinkButton ID="lnkInsertar0" runat="server" CausesValidation="true"
                                        CommandName="PerformInsert"
                                        Visible="<%# RadGrid2.EditIndexes.Count = 0 And RadGrid2.MasterTableView.IsItemInserted%>"><img 
                    border="0" src="../../Imagenes/actualizar.gif" /> Agregar Producto</asp:LinkButton>
                                    <asp:LinkButton ID="LnkEditarSel0" runat="server" CausesValidation="False"
                                        CommandName="EditSelected"><img border="0" 
                    src="../../Imagenes/editar.gif" /> Editar Producto</asp:LinkButton>
                                    <asp:LinkButton ID="lnkActualizar0" runat="server" CausesValidation="true"
                                        CommandName="UpdateEdited" Visible="<%# RadGrid2.EditIndexes.Count > 0%>"><img 
                    border="0" src="../../Imagenes/actualizar.gif" /> Actualizar Producto</asp:LinkButton>
                                    <asp:LinkButton ID="lnkCancelar0" runat="server" CausesValidation="False"
                                        CommandName="CancelAll"
                                        Visible="<%# RadGrid2.EditIndexes.Count > 0 or RadGrid2.MasterTableView.IsItemInserted %>">
                         <img border="0" src="../../Imagenes/cancelar.gif" /> Cancelar</asp:LinkButton>
                                    <asp:LinkButton ID="LnkBorrarSel0" runat="server" CausesValidation="False"
                                        CommandName="DeleteSelected"
                                        Visible='<%# Request.QueryString("ida") <> "CP" %>'><img border="0" 
                    src="../../Imagenes/borrar.gif" /> eliminar Producto</asp:LinkButton>
                                </CommandItemTemplate>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                                </EditFormSettings>
                            </MasterTableView><ClientSettings>
                                <Selecting AllowRowSelect="true"></Selecting>
                            </ClientSettings>
                            <EditItemStyle CssClass="TextosGrillas" />
                            <HeaderStyle CssClass="TextosGrillas" />
                            <ItemStyle CssClass="TextosGrillas" />
                            <SelectedItemStyle CssClass="TextosGrillas" />
                            <CommandItemStyle CssClass="CommandItemStyle" />
                            <FooterStyle CssClass="TextosGrillas" />
                            <FilterMenu EnableImageSprites="False"></FilterMenu>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
                        </telerik:RadGrid><br />
                    </fieldset>
                <%--</telerik:RadAjaxPanel>--%>
                <br />
                  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadGrid2">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
            </div>

            <asp:ObjectDataSource ID="dsDetalleOrdenTrabajo" runat="server"
                SelectMethod="ObtenerDetalleOrdenTrabajoFiltradoTable"
                TypeName="WarrantsNet.Negocio.Administracion.ProcesoNegocio.CitaPN">
                <SelectParameters>
                    <asp:Parameter Name="_Cita" Type="Object" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:ObjectDataSource
                ID="dsproductos" runat="server" SelectMethod="ObtenerProductoFiltrado"
                TypeName="WarrantsNet.Negocio.Administracion.ProcesoNegocio.ProductoPN">
                <SelectParameters>
                    <asp:Parameter
                        Name="_Producto" Type="Object" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </telerik:RadPane>
    </telerik:RadSplitter>

</asp:Content>

VB
Protected Sub RadGrid2_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid2.ItemCommand

        Select Case e.CommandName
            Case RadGrid.PerformInsertCommandName
                Try
                    Dim c As New CitaEN
                    Dim cP As New CitaPN

                    Dim item As GridDataInsertItem = DirectCast(e.Item.OwnerTableView.GetInsertItem(), GridDataInsertItem)
                    If RadGrid2.MasterTableView.IsItemInserted Then
                        c.CitaId = Request.QueryString("ic")
                        c.ProductoId = DirectCast(item("GridDropDownColumn").Controls(0), RadComboBox).SelectedValue
                        If DirectCast(item("Cantidad").Controls(0), RadNumericTextBox).Value.HasValue Then
                            c.Cantidad = DirectCast(item("Cantidad").Controls(0), RadNumericTextBox).Value
                        End If
                        c.Precintos = DirectCast(item("Precintos").Controls(0), TextBox).Text
                        c.TipodeActividad = Request.QueryString("ta")
                        Dim OtId As String = cP.InsertarDetalleOrdenTrabajo(c)
                        cargarRecepcionMercaderia()
                    End If

                   




                Catch ex As Exception
                    Dim expExc As ManejadorErrores = New ManejadorErrores(ex, SeveridadExcepcion.Critica)
                    'RadAjaxManager1.Alert(expExc.MensajeInterno)
                End Try
        End Select


       
    End Sub
Angel Petrov
Telerik team
 answered on 08 Feb 2013
7 answers
1.2K+ views
In short, I need to write a regular expression to parse the data from the RuccurenceRule.  I've started it with 1 row of sample data:

DTSTART:(?<StartDate>\d{8}).* DTEND:(?<EndDate>\d{8}).* FREQ=(?<Frequency>[A-Z]{0,10});INTERVAL=(?<Interval>\d{1,3});BYDAY=(?<ByDay>[A-Z]{1,3})

Because this is actually handled inside the scheduler control itself, I assume Telerik already has this pattern nice, pretty, and tested.  If so, would you mind sharing it?


We have the requirement to color code appointments (recurring and not) according to whether a particular file has been received that has been associated with that appointment.  This is extending beyond the functionality a bit, so we need to pretty much duplicate the recurrence handling in order to associate an appointment with a file received via datetime.
Boyan Dimitrov
Telerik team
 answered on 08 Feb 2013
4 answers
388 views
We are using Telerik Rad Window in our application.
rad window object is not destroyed
on close event of Rad window.so we are facing issue of memory leak.

we are using Telerik 2008 version.

we had used destroyonClose property but we are not able to solved the memory leak issue.its showing same memory usage after close window and its increase on opening a rad window.

Kindly provide us solution for the same.
Hassan
Top achievements
Rank 2
 answered on 08 Feb 2013
0 answers
89 views
Delete
Steven
Top achievements
Rank 1
 asked on 08 Feb 2013
1 answer
123 views
How to apply alternate row css in pivot grid?
If there is not any inbuilt method provided, please let me know custom way(s) to avail alternate row css in pivot grid.

Thanks in advance.

Galin
Telerik team
 answered on 08 Feb 2013
3 answers
122 views
With the declaration of the RadChart (see below), I found few render problems:

1 - When unzoomed, the top-left corner of the PlotArea is round if I ask to have to have all corners of the chart only to be round. I tried to declare in the code (ASPX) to have all PlotArea corners as rectangle without success.

2- When zoomes, both axis are greater than the PlotArea. The worst one is the X-Axis which is very to big and in the left it terminate where the Y-Axis Label begin.

Note: I am using version 2012.3.1308.45

ASPX
<telerik:RadChart ID="RadChart" runat="server" Width="800px" DefaultType="Line" OnClick="RadChart_Click" OnZoom="RadChart_Zoom" AutoLayout="True" Height="400px" >
    <ClientSettings ScrollMode="Both" ZoomRectangleColor="White" ZoomRectangleOpacity="0.5" />
    <ChartTitle>
        <TextBlock Text="Exemple avec RadChart">
        </TextBlock>
    </ChartTitle>
    <Series>
        <telerik:ChartSeries Name="Value_OK" Type="Line">
            <Appearance ShowLabels="False">
                <FillStyle MainColor="Lime">
                </FillStyle>
            </Appearance>
        </telerik:ChartSeries>
        <telerik:ChartSeries Name="Value_Alarm" Type="Line">
            <Appearance ShowLabels="False">
                <FillStyle MainColor="Aqua">
                </FillStyle>
            </Appearance>
        </telerik:ChartSeries>
        <telerik:ChartSeries Name="HighLimit" Type="Line">
            <Appearance ShowLabels="False">
                <FillStyle MainColor="Red">
                </FillStyle>
            </Appearance>
        </telerik:ChartSeries>
    </Series>
    <Appearance TextQuality="AntiAlias" Corners="Round, Round, Round, Round, 6">
    </Appearance>
    <PlotArea>
        <Appearance Dimensions-Margins="18%, 24%, 22%, 10%">
            <FillStyle MainColor="Black" />
        </Appearance>
        <XAxis LayoutMode="Normal" AutoScale="False">
            <AxisLabel TextBlock-Text="Temperature (&deg;C)">
            </AxisLabel>
            <Appearance ValueFormat="ShortTime" >
                <MajorGridLines Visible="true" />
                <MinorGridLines Visible="false"/>
                <LabelAppearance RotationAngle="90" Position-AlignedPosition="Top">
                </LabelAppearance>
            </Appearance>
        </XAxis>
        <YAxis IsZeroBased="false" AxisMode="Extended">
            <Appearance>
                <MajorGridLines Visible="true"/>
                <MinorGridLines Visible="False" />
            </Appearance>
            <AxisLabel Visible="true">
                <TextBlock Text="Temperature (°C)">
                </TextBlock>
            </AxisLabel>
        </YAxis>
    </PlotArea>
</telerik:RadChart>
Peshito
Telerik team
 answered on 08 Feb 2013
1 answer
173 views
I want to use RadChar as a userControl and load it to a web page. But when I load it to the page, Chart loads but without the Chart Lines (lines in the middle). I herewith attach the sample code I created to reproduce the issue. 

--Default.aspx--
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication3.WebForm1" %>
 
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ 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="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel runat="server" ID="panel1"></asp:Panel>
    <asp:Button ID="Button1" runat="server" Text="Button"
    onclick="Button1_Click1" />
</asp:Content>

--Default.aspx.cs--
public partial class WebForm1 : System.Web.UI.Page
    {
        private WebUserControl1 uc1;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                uc1 = (WebUserControl1)this.LoadControl("WebUserControl1.ascx");
                this.panel1.Controls.Add(uc1);
            }
        }
}

--WebUserControl1.ascx--
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl1.ascx.cs" Inherits="WebApplication3.WebUserControl1" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <telerik:RadChart EnableViewState="False" ID="RadChart1" runat="Server" Width="495px" AutoLayout="true" Skin="Mac">
                <ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="4"></ClientSettings>
                <Series>
                    <telerik:ChartSeries DataYColumn="MyColumn" Type="Line">
                        <Appearance FillStyle-MainColor="223, 87, 60">
                        </Appearance>
                    </telerik:ChartSeries>
                </Series>
                <Legend Visible="true"></Legend>
                <ChartTitle TextBlock-Text="Scrolling only (initial XScale applied)">
                </ChartTitle>
            </telerik:RadChart>
            </ContentTemplate>
    </asp:UpdatePanel>

--WebUserControl1.ascx.cs--
public partial class WebUserControl1 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
                LoadChart();
        }
 
        private void LoadChart()
        {
            // Define chart and titleRadChart radChart = new RadChart();
            RadChart1.ChartTitle.TextBlock.Text = "My RadChart";
            RadChart1.ChartTitle.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Blue;
            // Define chart series
            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Appearance.LabelAppearance.Visible = true;
            chartSeries.Name = "GDP";
            chartSeries.Type = ChartSeriesType.Line;
            chartSeries.Appearance.LineSeriesAppearance.Color = System.Drawing.Color.BlueViolet;
            // Define the items in the series
            chartSeries.AddItem(1);
            chartSeries.AddItem(1.5);
            chartSeries.AddItem(2.0);
            chartSeries.AddItem(2.5);
            chartSeries.AddItem(3.5);
            // visually enhance the datapoints
            chartSeries.Appearance.PointMark.Dimensions.AutoSize = false;
            chartSeries.Appearance.PointMark.Dimensions.Width = 8;
            chartSeries.Appearance.PointMark.Dimensions.Height = 8;
            chartSeries.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Black;
            chartSeries.Appearance.PointMark.Visible = true;
            // Define chart series
            ChartSeries chartSeries2 = new ChartSeries();
            chartSeries2.Appearance.LabelAppearance.Visible = false;
            chartSeries2.Name = "GNP";
            chartSeries2.Type = ChartSeriesType.Line;
            chartSeries2.Appearance.LineSeriesAppearance.Color = System.Drawing.Color.Green;
            // Define the items in the series
            chartSeries2.AddItem(2);
            chartSeries2.AddItem(3);
            chartSeries2.AddItem(3.5);
            chartSeries2.AddItem(4);
            chartSeries2.AddItem(4.5);
            // visually enhance the data points
            chartSeries2.Appearance.PointMark.Dimensions.AutoSize = false;
            chartSeries2.Appearance.PointMark.Dimensions.Width = 5;
            chartSeries2.Appearance.PointMark.Dimensions.Height = 5;
            chartSeries2.Appearance.PointMark.FillStyle.MainColor = System.Drawing.Color.Black;
            chartSeries2.Appearance.PointMark.Visible = true;
            // set the plot area gradient background fill
            RadChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
            RadChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.FromArgb(65, 201, 254);
            RadChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.FromArgb(0, 107, 186);
            // Set text and line for X axis
            RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Years";
            RadChart1.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red;
            RadChart1.PlotArea.XAxis.Appearance.Width = 3;
            RadChart1.PlotArea.XAxis.Appearance.Color = System.Drawing.Color.Red;
            // Set text and line for Y axis
            RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "%";
            RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red;
            RadChart1.PlotArea.YAxis.Appearance.Width = 3;
            RadChart1.PlotArea.YAxis.Appearance.Color = System.Drawing.Color.Red;
            // Add the series to the chart, chart to
            RadChart1.Series.Add(chartSeries);
            RadChart1.Series.Add(chartSeries2);
        }
    }

--Site.Master--
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="WebApplication3.Site1" %>
 
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" 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></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
         
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

Appreciate your help

Thanks,
Viraj.
Petar Kirov
Telerik team
 answered on 08 Feb 2013
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?