Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
I've had a play with the new listview example for appending data to the listview clientside.

http://demos.telerik.com/aspnet-ajax/listview/examples/client/appendingdata/defaultcs.aspx 

Have to say it looks great. Exactly what I wanted (Gmail style row updates for new messages without having a nasty AjaxLoadingPanel on the whole list),

However, I want the new item to be appended to the top of the list not the bottom. Is this possible (or am I just being a bit stupid!)

Thanks

Steve Bennett
Radoslav
Telerik team
 answered on 23 Apr 2012
6 answers
279 views

I’m currently working on a complex web part, which requires a rich text editor with options to upload images and documents.

I have downloaded your SharePoint Acceleration Kit and I can see it offers a rich text editor, which can be used as a replacement of a default rich text editor in SharePoint forms.

However I need to use it in a custom web part – is that possible?

Rumen
Telerik team
 answered on 23 Apr 2012
8 answers
181 views
Hi,

In my project I am creating normal ASP .NET user controls, then wrap them up as Sharepoint (using 2010) web parts for deployment. Everything works fine in Sharepoint if there is an instance of the Rad Control already visible on the page. However, sometimes I only have one instance of the control in the page and it starts out Visible = false. When I trigger an event to show the control I get things that no longer work. For example, RadNumericTextbox will throw a javascript error, RadDatePicker and RadTimerPicker will no longer popup the picker if I click on the icon. This looks like it's because the script resource for the controls aren't loaded initially because they are hidden. If I use styles and set "display: none" then it's fine, Creating hidden controls in the master page would work but it would be better if there was something I can set, perhaps in the RadScriptManager, to do this.

Thanks,
Gilbert
leitel
Top achievements
Rank 1
 answered on 23 Apr 2012
1 answer
97 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
132 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
434 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
432 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
240 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
159 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
105 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
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?