Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Is there a way to adjust the curve fit that the spline chart uses to plot the line?   We have used an older competitor's product for a different project, and had the ability to set the "amount of spline" for lack of a better term, to adjust how much curvature occurs between the points.

Jason Mizuno
SYMLOG Consulting Group
Petar Marchev
Telerik team
 answered on 23 Apr 2012
2 answers
106 views
Hi All,

How to set Sliding Pane control to expand position when page load?

Thanks,
Rory.
Rory
Top achievements
Rank 1
 answered on 23 Apr 2012
6 answers
383 views
i would like the CSS class selectors such as:
.RadMenu_iDefault .rmItem a.rmLink {
    padding: 1px 0 1px 12px;
}
.RadMenu_iDefault .rmHorizontal .rmItem {
    padding: 2px 0;
}
.RadMenu_iDefault_rtl .rmItem a.rmLink {
    padding: 1px 12px 1px 0;
}
.RadMenu_iDefault .rmVertical .rmItem a.rmLink {
    padding: 1px 12px;
}
div.RadMenu_iDefault_rtl .rmHorizontal .rmText {
    padding: 0 0 1px 12px;
}
Not to be rendered with the code at run time, this is because i like using 'DotLess' in my projects and i'm used to the way i style the pages using the elements like:

[Valid DotLess Syntax]
.Menu_Head{
    float: right;
    list-style: none;
    #Layouts > .FullAutoWidth;
    --{}
    a {
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        display: block;
        --{}
        &:visited, &:active {
            color#ffffff;
            text-decoration: none;
        }}
    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        list-style:none outside none;
        --{}
        &:focus, li a:focus {
            outline: none;
            outline-width: 0;
        }}}

i'm not a big fan of the way the style sheets have been created for the telerik rad controls so the the generated selectors are sort of "in the way". i would like the following HTML:
<ul class="rmRootGroup rmHorizontal">
<li class="rmItem rmFirst">

with the selectors omitted at runtime.
Basically i don't want the /WebResource.axd or the CSS Selectors generated. i have EnableEmbeddedBaseStylesheet="False" but is there something i can do about the CSS Selectors like ie. EnableCSSClassSelectors="False" or a work around to accomplish such?

<ul class="">
 <li class="">
Michael
Top achievements
Rank 1
 answered on 23 Apr 2012
3 answers
396 views
I notice that when I call set_value() using Javascript, the Combo is not updated to display the item corresponding to the value. But after that when I click on the drop down, it selects the value.

Instead of that, findItemByValue().select() works. Actually the set_value() should also do the same - don't you think?

Thanks,
Piyush
Ivana
Telerik team
 answered on 23 Apr 2012
3 answers
215 views
Hello,

I'm using a radgrid in my solution. I use this radgrid for draging and dropping of data, but nothing needs to be selected. So when a user clicks a row, the row shouldn't change his lay-out to a selected row. But when i disable selecting, drag and drop won't work anymore. It's not that kind of a problem that the user can select a row, but it must be at least invisible for the user because some users can get confused.

Is there a way to ether disable selection but keep drag and dropping or overridage/delete the css of a selected row?
I hope anyone can help me!

Thank you in advance!

Kind regards,
Wesley

p.s. excuse me for my bad English
Andrey
Telerik team
 answered on 23 Apr 2012
2 answers
142 views
When setting PageSize in code behind, pager will not navigate past page 1.


Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim dataPager As RadDataPager = DirectCast(lstProduct.FindControl("RadPager1"), RadDataPager)
    dataPager.PageSize = 36

<telerik:RadDataPager ID="RadPager1" AllowSEOPaging="true" SEOPagingQueryPageKey="page"  skin="Office2010Silver"
                                                            runat="server" PagedControlID="lstProduct" >
                                                            <Fields>
                                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                                <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="7"/>
                                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                                <telerik:RadDataPagerTemplatePageField>
                                                                    <PagerTemplate>
                                                                        <div style="float: right">
                                                                            <b>Items
                                                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                                                to
                                                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# IIF(Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize), Container.Owner.StartRowIndex+Container.Owner.PageSize, Container.Owner.TotalRowCount) %>" />
                                                                                of
                                                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                                                <br />
                                                                            </b>
                                                                        </div>
                                                                    </PagerTemplate>
                                                                </telerik:RadDataPagerTemplatePageField>
                                                            </Fields>
                                                        </telerik:RadDataPager>

Maria Ilieva
Telerik team
 answered on 23 Apr 2012
1 answer
81 views
This is my source code. I need to put a legend and Month/Year on XAxis. How do I do? Below my code.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using Telerik.Charting;
using System.Data.OracleClient;
using System.Data.SqlClient;
using System.IO;
using System.Data;
using System.Configuration;
using System.Text.RegularExpressions;
using System.Text;


namespace GetNet.Monitoracao.UI.Web.Graficos
{
    public partial class DesempenhoMensal : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Cria o objeto Chart, base de todos os gráficos
            RadChart radChart1 = new RadChart();
            radChart1.ChartTitle.TextBlock.Text = "EVOLUÇÃO MENSAL APROVADAS DÉBITO";            


            //Muda a cor de fundo do gráfico para transparente
            radChart1.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
            radChart1.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent;
            radChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
            radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent;
            this.Controls.Add(radChart1);


            RadChart radChart2 = new RadChart();
            radChart2.ChartTitle.TextBlock.Text = "EVOLUÇÃO MENSAL APROVADAS CRÉDITO";


            //Muda a cor de fundo do gráfico para transparente
            radChart2.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
            radChart2.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent;
            radChart2.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
            radChart2.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.Transparent;
            this.Controls.Add(radChart2);
                                    
            ChartSeries chartSeries1 = radChart1.CreateSeries("DEBITO", System.Drawing.Color.LightBlue, System.Drawing.Color.LightBlue, ChartSeriesType.Bar);
            ChartSeries chartSeries2 = radChart2.CreateSeries("CRÉDITO", System.Drawing.Color.LightCyan, System.Drawing.Color.LightCyan, ChartSeriesType.Bar);
            ChartSeries chartSeries3 = radChart1.CreateSeries("DEBITO", System.Drawing.Color.LightGreen, System.Drawing.Color.LightGreen, ChartSeriesType.Bar);
            ChartSeries chartSeries4 = radChart2.CreateSeries("CREDITO", System.Drawing.Color.Silver, System.Drawing.Color.Silver, ChartSeriesType.Bar);


            chartSeries1.Type = ChartSeriesType.Bar;
            chartSeries2.Type = ChartSeriesType.Bar;
            chartSeries3.Type = ChartSeriesType.Bar;
            chartSeries4.Type = ChartSeriesType.Bar;


            chartSeries1.;


            //A orientação do gráfico
            radChart1.SeriesOrientation = ChartSeriesOrientation.Vertical;
            radChart2.SeriesOrientation = ChartSeriesOrientation.Vertical;
            
            //Tamanho da área do gráfico em pixels
            radChart1.Height = 300;
            radChart1.Width  = 800;


            radChart2.Height = 300;
            radChart2.Width = 800;


            int[] dataArray1 = new int[] { 12, 56, 23, 89, 12, 56, 34, 78, 32, 56 };
            int[] dataArray3 = new int[] { 2, 6, 53, 19,22, 36, 34, 18, 42, 26 };




            foreach (int i in dataArray1) {
                chartSeries1.AddItem(i, "");
            }
            foreach (int i in dataArray3)
            {
                chartSeries3.AddItem(i, "");
            }
            
            int[] dataArray2 = new int[] { 42, 16, 13, 9, 12, 86, 30, 38, 62, 26 };
            int[] dataArray4 = new int[] { 32, 36, 10, 39, 72, 16, 20, 58, 82, 36 }; 
                        
            foreach (int I in dataArray2)
            {
                chartSeries2.AddItem(I, "");
            }
            foreach (int I in dataArray4)
            {
                chartSeries4.AddItem(I, "");
            }
        }
    }
}
Petar Marchev
Telerik team
 answered on 23 Apr 2012
1 answer
128 views
Is it possible for the text for resources to word-wrap.  Please see attached.
Plamen
Telerik team
 answered on 23 Apr 2012
1 answer
51 views
Hi,

I use RadPanelBar inside a Div, and I have RadComboBox under the RadPanelBar.
When I expand the RadPanelBar, it push the RadComboBox down.
Is there a way to expand the RadPanelBar in a way that it will be opened and "hide" the RadComboBox (like when you open the RadComboBox and it "hides" everything under).

Attached print screen named "Opened", to see the result.I expect that the RadPanelBar will hide the combo box.
Kate
Telerik team
 answered on 23 Apr 2012
4 answers
156 views
Hi everyone,
i want to add an ImageColumn at the end of a RadGrid which is using a DataTable as DataSource.
DataTable dtTable = objTest.ReturnsDataTable();
RadGrid2.DataSource = dtTable;
RadGrid2.DataBind();
GridImageColumn gridImageCol = new GridImageColumn();
gridImageCol.ImageUrl = "/images/stift_icon.gif";
GridImageButton gridButton = new GridImageButton(gridImageCol);
gridButton.OnClientClick = "testAlert";
 
 
RadGrid2.DataBind();
RadGrid2.Columns.Add(gridImageCol);
//RadGrid2.Rebind();
RadGrid2.DataBind();
Because of the Source (i guess) i need to call the Binding-Metod, so that the row can be added (at the end).
If i just now add the Column without calling DataBind() or Rebind() again, the ImageColumn will not be shown. And by using those methods, the ImageColumn is the first Column.

Is there a way to solve this?
Is it maybe possible to switch the position of the columns? (I could use this in another case).

Thanks in advance,
Marcel
Maria Ilieva
Telerik team
 answered on 23 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?