Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
293 views
Newbie here ->>  I have long data records & the edit column is positioned last - I want it positioned FIRST. With the volumes of posts I have consumed over 2 hours, I have not seen a definitive solution to this common question..... with AutoGenerateEditColumn="True" , what is the setting to get the EDIT column to the FIRST position.

Also, Telerik might consider to make this the default position in a future RadGrid release. It is the position of the stock windows gridview, why not here as well...

Many Thanks !
RootBoy
Bill Bain
Top achievements
Rank 1
 answered on 23 Apr 2010
3 answers
135 views
How can I create the rotator with navigation? Let's say I have 5 images to display.
I want the navigation like [1] [2] [3] [4] [5] to show under the image so that I can jump to the specific image.

Thanks
Brew
Fiko
Telerik team
 answered on 23 Apr 2010
1 answer
131 views
Hi,

I have two questions about how telerik Ajax works (in my attempt to optimize a page):
1) In my page I have the RadAjaxManager control set to update several controls, because of some explicit Ajax Requests I have in javascript. Does this mean that for each postback (caused by other controls as well) the viewstate of these controls will be downloaded, and JS will be run on the AJAX handler to update the controls?

2) If I have a control that is set in RadManager's AjaxSettings to update two other controls. On one event it updates a control, and on another event it updates the other. Does this mean that on each event, it will download the viewstate of both controls and run the corresponding JS for both?

Thank you,
Victor
Iana Tsolova
Telerik team
 answered on 23 Apr 2010
1 answer
62 views
Any plans to improve the wizard or make the process of creating a chart more user friendly?

I find the existing wizard a bit confusing...a dynamic preview would help a TON...and a style builder\property
Vladimir Milev
Telerik team
 answered on 23 Apr 2010
2 answers
131 views
I want to build two groups in one Timeline,useing  this code"Group by = "Taskgroup,Project" . but it dose not work.
Can somebody help me ?Thanks!!
Peter
Telerik team
 answered on 23 Apr 2010
1 answer
126 views
Hello All,

I'm using IIS7 classic mode and have been using the captcha control fine on a single machine, but now we have three webservers we have moved our sessions into sql server.

First I started to get grey boxes every so often and upon reading the forum it was mentioned to use session instead of cache which I setup but now I do not see a capcha image at all.

My code is

 

<telerik:RadCaptcha ID="RadCaptcha1" runat="server"

 

 

CaptchaImage-TextChars="Numbers"

 

 

ErrorMessage="Please enter correct capcha numbers"

 

 

CaptchaTextBoxLabel=" Type the numbers from the image" Display="None"

 

 

CaptchaTextBoxLabelCssClass="capcha" ImageStorageLocation="Session" >

 

<

 

CaptchaImage TextChars="Numbers"></CaptchaImage>

 

 

</telerik:RadCaptcha>

 


my httpHandlers are

<

 

httpHandlers>

 

<

 

remove verb="*" path="*.asmx" />

 

<

 

add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<

 

add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResourceSession" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

 

 

<

 

add verb="*" path="WebCoreModule.ashx" type="Radactive.WebControls.ILoad.Core.WebCoreModule, Radactive.WebControls.ILoad.Core" validate="false" />

 

</

 

httpHandlers>

 



<

 

handlers>

 

<

 

remove name="WebServiceHandlerFactory-Integrated" />

 

<

 

remove name="ScriptHandlerFactory" />

 

<

 

remove name="ScriptHandlerFactoryAppServices" />

 

<

 

remove name="ScriptResource" />

 

<

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="WebResource.axd" type="Telerik.Web.UI.CaptchaImageHandler" />

 

<

 

add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />

 

<

 

add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

 

<

 

add name="Telerik_Web_UI_DialogHandler" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />

 

<

 

add name="WebCoreModule.ashx_*" path="WebCoreModule.ashx" verb="*" type="Radactive.WebControls.ILoad.Core.WebCoreModule, Radactive.WebControls.ILoad.Core" preCondition="integratedMode" />

 

</

 

handlers>

 


My telerik dll version is
2009.3.1103.35

Any help on this would be great

Regards

Ben O'Shea
Pero
Telerik team
 answered on 23 Apr 2010
1 answer
84 views
Hi,

What i am trying to do is to implement the scheduler into a login system.

After logging into the system, the users can have their own set of schedules, there will be a team calendar for them to view  (but not edit ). All the resource styles (eg. different color of the appointment block layout) are automatically generated according to the project group members, and when the user click on a particular appointment, he/she are not suppose to choose any resource (eg. user ).

I am able to generate the resources according to their login role, but i don't know how to disable the related resources in the UI part. 


Thanks,
Sunny
 
Peter
Telerik team
 answered on 23 Apr 2010
1 answer
146 views

I am working with VS 2008 with ASP.NET AJAX Q1 2010 ListBox control.

Code in my ASPX page

<telerik:RadListBox ID="radRotationSource" runat="server" AllowTransfer="True"   
                            style="width: 200px" TransferMode="Copy"   
                            TransferToID="radRotationDestination" Skin="Windows7">  
<ButtonSettings ReorderButtons="Common"></ButtonSettings> 
                        </telerik:RadListBox>    
                        <telerik:RadListBox ID="radRotationDestination" runat="server"   
                            style="width: 200px" Skin="Windows7">  
                            <ButtonSettings ReorderButtons="Common">  
                            </ButtonSettings> 
                        </telerik:RadListBox> 

C# Code to load Source RadListBox
            Database db = null;  
 
            db = DatabaseFactory.CreateDatabase();  
            DataSet ds = db.ExecuteDataSet(CommandType.StoredProcedure, "GetAllUsersForRotation");  
            db = null;  
            radRotationSource.DataSource = ds;  
            radRotationSource.DataTextField = "Login";  
            radRotationSource.DataValueField = "UserID";  
            radRotationSource.DataBind();  
            radRotationSource.Sort = Telerik.Web.UI.RadListBoxSort.Ascending;  
            radRotationSource.SortItems();    

C# Code to Save values from Destination RadListBox
        protected void btnSave_Click(object sender, EventArgs e)  
        {  
            Database db = null;  
 
            db = DatabaseFactory.CreateDatabase();  
 
            int rows = db.ExecuteNonQuery(CommandType.StoredProcedure, "ClearUsersInRotation");  
 
            string[] arr = new string[2];  
 
            for (int x = 1; x < radRotationDestination.Items.Count; x++)  
            {  
                arr[0] = radRotationDestination.Items[x].DataItem.ToString();  
                arr[1] = radRotationDestination.Items[x].DataKey.ToString();  
                rows = db.ExecuteNonQuery("SetUsersInRotation", arr);  
            }  
 
            db = null;  
        } 

The code for loading up the Source RadListBox works fine and I have all the users correctly and I am able to transfer them using the buttons over to the Destination RadListBox.  The problem is when I click on the SAVE button and want to grab the DataValueField and the position of each item in the Destination RadListBox and store it in the database, I have no values.
nightvision miami
Top achievements
Rank 1
 answered on 23 Apr 2010
3 answers
266 views
Aloha!

I'm currently working with the Q3 2009 version of the ASP.NET controls and seem to have hit an oddity with the RadDatePicker (and probably other) controls when setting the EmptyMessage and performing optional field validation.  I've set the EmptyMessage on the control and also have a RangeValidator applied to it; validators don't typically validate empty text and this is fine on the client validation (no error) but server-side fails as the ValidationDate is set to the EmptyMessage value, causing the RangeValidator to try and validate.

Is there a way around this, short of making code changes and performing custom validation, enabling/disabling validators etc?  Or should I just remove the EmptyMessage value?  I've read a couple of other threads here discussing always catching the (possibly invalid) data entered in ValidationDate but in this case, there is no explicit data entry.

Thanks in advance.

Kev.
Dimo
Telerik team
 answered on 23 Apr 2010
5 answers
358 views
Hello,

we´ve been using RadControls for more than one year now. But since version 4.x of RadChart we have problems with ChartSeries Labels.
In case of IntelligentLabelsEnabled="false" all labels are shown, but overwrite each other and do not look very well positioned. If IntelligentLabelsEnabled is set to true, it looks much better, but some labels just disappear or overwrite each other, too.

We now use RadControls for ASP.NET AJAX 2008 1 619.

Here is some code to reproduce the problem:

Default.aspx:
//***************************************

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadChartBugs._Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body style="width: 100%">
    <form id="form1" runat="server" style="width: 100%">
    <asp:Panel ID="Panel1" runat="server" Width="100%" BackColor="AliceBlue">
        <telerik:RadChart ID="RadChart1" runat='server' Width="1100px" Height="500px"
            IntelligentLabelsEnabled="true" AutoLayout="true">
            <PlotArea>
                <EmptySeriesMessage TextBlock-Text="(Keine Daten vorhanden)">
                </EmptySeriesMessage>
            </PlotArea>
            <ChartTitle TextBlock-Text="IntelligentLabelsEnabled='true' AutoLayout='true'">
            </ChartTitle>
        </telerik:RadChart>
        <telerik:RadChart ID="RadChart3" runat='server' Width="1100px" Height="500px"
            IntelligentLabelsEnabled="false" AutoLayout="true">
            <PlotArea>
                <EmptySeriesMessage TextBlock-Text="(Keine Daten vorhanden)">
                </EmptySeriesMessage>
            </PlotArea>
            <ChartTitle TextBlock-Text="IntelligentLabelsEnabled='false' AutoLayout='true'">
            </ChartTitle>
        </telerik:RadChart>
        <telerik:RadChart ID="RadChart5" runat='server' Width="1100px" Height="500px"
            IntelligentLabelsEnabled="true" AutoLayout="true">
            <PlotArea>
                <EmptySeriesMessage TextBlock-Text="(Keine Daten vorhanden)">
                </EmptySeriesMessage>
            </PlotArea>
            <ChartTitle TextBlock-Text="IntelligentLabelsEnabled='true' AutoLayout='true'">
            </ChartTitle>
        </telerik:RadChart>
        <telerik:RadChart ID="RadChart7" runat='server' Width="1100px" Height="500px"
            IntelligentLabelsEnabled="false" AutoLayout="true">
            <PlotArea>
                <EmptySeriesMessage TextBlock-Text="(Keine Daten vorhanden)">
                </EmptySeriesMessage>
            </PlotArea>
            <ChartTitle TextBlock-Text="IntelligentLabelsEnabled='false' AutoLayout='true'">
            </ChartTitle>
        </telerik:RadChart>
        <telerik:RadChart ID="RadChart9" runat='server' Width="1100px" Height="500px"
            IntelligentLabelsEnabled="true" AutoLayout="true">
            <PlotArea>
                <EmptySeriesMessage TextBlock-Text="(Keine Daten vorhanden)">
                </EmptySeriesMessage>
            </PlotArea>
            <ChartTitle TextBlock-Text="IntelligentLabelsEnabled='true' AutoLayout='true'">
            </ChartTitle>
        </telerik:RadChart>
        <telerik:RadChart ID="RadChart11" runat='server' Width="1100px" Height="500px"
            IntelligentLabelsEnabled="false" AutoLayout="true">
            <PlotArea>
                <EmptySeriesMessage TextBlock-Text="(Keine Daten vorhanden)">
                </EmptySeriesMessage>
            </PlotArea>
            <ChartTitle TextBlock-Text="IntelligentLabelsEnabled='false' AutoLayout='true'">
            </ChartTitle>
        </telerik:RadChart>
    </asp:Panel>
    </form>
</body>
</html>


//***************************************

Default.aspx.cs:

//***************************************

using System.Drawing;
using System;
using Telerik.Web.UI;
using Telerik.Charting.Styles;
using Telerik.Charting;
namespace RadChartBugs
{
    public partial class _Default : System.Web.UI.Page
    {
        const int MAX_PIE_CHART_ITEMS = 10;
        static readonly Color[] _pieChartColors = new Color[]{
        Color.Red, Color.Purple, Color.Plum,
        Color.Blue, Color.Coral, Color.Cyan,
        Color.Green, Color.Indigo, Color.Magenta,
        Color.Yellow, Color.Teal, Color.Salmon,
        Color.OrangeRed
    };

        protected void Page_Load(object sender, EventArgs e)
        {
            PrepareChart1(RadChart1);
            PrepareChart1(RadChart3);

            PrepareChart2(RadChart5);
            PrepareChart2(RadChart7);

            PrepareChart3(RadChart9);
            PrepareChart3(RadChart11);
        }

        protected void PrepareChart1(RadChart chart)
        {
            chart.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false;
            chart.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Currency;

            ChartSeries dep1Series = new ChartSeries();
            dep1Series.Type = ChartSeriesType.Bar;
            dep1Series.Name = "Department 1";

            dep1Series.AddItem(100000, "Company 1: 100.000");
            dep1Series.AddItem(150000, "Company 2: 150.000");
            dep1Series.AddItem(125000, "Company 3: 125.000");
            dep1Series.AddItem(140000, "Company 4: 140.000");
            dep1Series.AddItem(110000, "Company 5: 110.000");

 

            ChartSeries dep2Series = new ChartSeries();
            dep2Series.Type = ChartSeriesType.Bar;
            dep2Series.Name = "Department 2";

            dep2Series.AddItem(140000, "Company 6: 140.000");
            dep2Series.AddItem(110000, "Company 7: 110.000");
            dep2Series.AddItem(100000, "Company 8: 100.000");
            dep2Series.AddItem(150000, "Company 9: 150.000");
            dep2Series.AddItem(125000, "Company 10: 125.000");

            chart.AddChartSeries(dep1Series);
            chart.AddChartSeries(dep2Series);

            dep1Series.Appearance.LabelAppearance.RotationAngle = -90;
            dep2Series.Appearance.LabelAppearance.RotationAngle = -90;

        }

        protected void PrepareChart2(RadChart chart)
        {
            chart.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Currency;
            chart.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.None;
            chart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -90;
            chart.PlotArea.XAxis.AutoScale = false;

            chart.PlotArea.XAxis.Items.Clear();

            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Name = "Turnover total: 400.000€";
            chartSeries.Type = ChartSeriesType.Line;
            chartSeries.Appearance.LabelAppearance.RotationAngle = -90;
            chartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.SeriesName;

            chartSeries.AddItem(150000, "EUR 150.000");
            chart.PlotArea.XAxis.Items.Add(new ChartAxisItem("01.2008"));

            chartSeries.AddItem(125000, "EUR 125.000");
            chart.PlotArea.XAxis.Items.Add(new ChartAxisItem("02.2008"));

            chartSeries.AddItem(170000, "EUR 170.000");
            chart.PlotArea.XAxis.Items.Add(new ChartAxisItem("03.2008"));

            chartSeries.AddItem(165000, "EUR 165.000");
            chart.PlotArea.XAxis.Items.Add(new ChartAxisItem("04.2008"));

            chartSeries.AddItem(70000, "EUR 70.000");
            chart.PlotArea.XAxis.Items.Add(new ChartAxisItem("05.2008"));

            chart.AddChartSeries(chartSeries);
            chart.Legend.Visible = true;
        }

        protected void PrepareChart3(RadChart chart)
        {
            chart.Legend.Visible = false;
            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Name = "Turnover total: EUR 100.000";
            chartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing;
            chartSeries.Type = ChartSeriesType.Pie;
            chartSeries.Appearance.StartAngle = -90;
            chartSeries.Appearance.ShowLabelConnectors = true;
            chartSeries.Appearance.DiameterScale = 0.6;
            chart.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Percent;
            chart.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.Currency;

            double sumPercent = 100;
            double sumValue = 100000;

            for (int i = 1; i < 3; ++i)
            {
                string label = string.Format("{0}: {1} {2:N2} ({3:N2}%)", "Customer " + i.ToString(), "EUR", (24 + i) * 1000, 24 + i);
                chartSeries.AddItem(24 + i, label, _pieChartColors[i % _pieChartColors.Length]);
                sumPercent -= 24 + i;
                sumValue -= (24 + i) * 1000;
            }

            for (int i = 1; i < 9; ++i)
            {
                double d = (12 - i) / 2;
                string label = string.Format("{0}: {1} {2:N2} ({3:N2}%)", "Customer " + (i + 2).ToString(), "EUR", d * 1000, d);
                chartSeries.AddItem(d, label, _pieChartColors[i % _pieChartColors.Length]);
                sumPercent -= d;
                sumValue -= d * 1000;
            }

            chartSeries.AddItem(sumPercent, string.Format("Remain: EUR {0:N2} ({1:N2}%)", sumValue, sumPercent), Color.Pink, true);

            chart.AddChartSeries(chartSeries);
            chartSeries.Appearance.TextAppearance.MaxLength = 150;

        }
    }
}


//***************************************

There may be some properties to change the look of labels, we do not know by now. The documentation in some cases is still very rare ;-)
Hope u can help.

Thanx,
Daniel


P.S.: While writing this forum post, I pasted some content into this editor window. An askbox occured, asking me if I want to allow pasting into this window (In German: Möchten Sie zulassen, dass Informationen aus der Zwischenablage in diese Seite eingefügt werden?). If I said "No" the pasted content anyhow sometimes appeared, but appeared everytime when I pasted twice (and answered "No").
Vladimir Milev
Telerik team
 answered on 23 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?