Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
36 views

I am using both IE9 and Firefox 7 on the popup edit they display differently. I have a required validation on some fields.

<telerik:GridTemplateColumn HeaderText="First Name" UniqueName="First_Name" AllowFiltering="False">
    <EditItemTemplate>
        <telerik:RadTextBox ID="tbFirstName" runat="server" Text='<%# Bind("First_Name") %>'>
        </telerik:RadTextBox>
        <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ErrorMessage="(Required)"
            ControlToValidate="tbFirstName" ForeColor="Red"> </asp:RequiredFieldValidator>
    </EditItemTemplate>
    <ItemStyle HorizontalAlign="Left" />
    <ItemTemplate>
        <asp:Label ID="lbFirstName" runat="server" Text='<%# Eval("First_Name", "{0}") %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>
Ken
Top achievements
Rank 1
 answered on 29 Sep 2011
1 answer
60 views
In my implementation, I have some parent appointments that are visible=false.  This is because the parent may belong to another user (not visible), and the single occurrence of an appointment is moved to the current user (current user's appointments are visible).

Originally, I did not include any appointments that were not of the current user, but this meant that the current user could not edit the single occurrence of their appointment, because it happened to be part of a series that originally belonged to another user.

Now, my scheduler loads in all appointments for the current user, and also includes any parent appointments, and sets parent appointments that belong to other users to visible=false.

This seemed to be working, except that the parent has a 'RecurrenceRule', so the scheduler automatically parses the rule and builds the recurring appointments.  The recurring appointments are visible, even though the parent is visible=false.  How can I force the parsed recurring appointments to be visible=false?

I tried setting the parent RecurrenceRule to null in AppointmentDataBound, and that prevents the recurring appointments for other users from being generated, but when you delete the current user's single occurrence, it throws an exception that the scheduler could not parse the parent RecurrenceRule (not surprisingly since I manually removed it).

Any ideas?
Plamen
Telerik team
 answered on 29 Sep 2011
1 answer
103 views
Dear Telerik Team,

we would like to ask how to strongly define RadChart's heigth. The heigth is set up in according to the size of chart's legend currently. Our chart has 192 series, in other words 192 items in the legend. The heigth of the chart is adjusted to the heigth of the legend regardless to the fact whether the legend is hidden or shown bellow. Here's our code snippet of the RadChart settings:

                radChart.ClearSkin();

                radChart.Skin = Skin;

                radChart.SeriesOrientation = ((RadChartEntity)Session[radChart.ID]).Orientation;

                radChart.AutoLayout = true;

                radChart.PlotArea.Appearance.Dimensions.Width = 500;

                radChart.PlotArea.Appearance.Dimensions.Height = 500;

                radChart.PlotArea.EmptySeriesMessage.TextBlock.Text = "No data";

                radChart.PlotArea.XAxis.IsZeroBased = false;

                radChart.PlotArea.XAxis.AutoScale = false;

                radChart.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.CompositionType = LabelItemsCompositionTypes.RowImageText;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Top;

                radChart.Appearance.FillStyle.FillType = FillType.Solid;

                radChart.Appearance.TextQuality = TextQuality.ClearTypeGridFit;

                radChart.Appearance.Border.Visible = false;

                radChart.Legend.Appearance.ItemTextAppearance.MaxLength = 20;

                radChart.Legend.Appearance.Position.AlignedPosition = AlignedPositions.TopRight;

                //radChart.Legend.Appearance.Overflow = Overflow.Row;

                radChart.ChartTitle.Appearance.Position.AlignedPosition = AlignedPositions.TopLeft;

                radChart.ChartTitle.Appearance.Position.Auto = false;

 

Let us also remark, the heigth of the RadChart equals to 600px a the width of the RadChart equals to 1000px.

<telerik:RadChart ID="radChart" runat="server" Height="600px" Width="1000px" EnableViewState="false">

                </telerik:RadChart>



We attached the image of the chart for the illustration as well.
We'll be very grateful for any suggestions about solving such the problem.

Kind regards,
SCT
SCT
Top achievements
Rank 1
 answered on 29 Sep 2011
0 answers
69 views
Hi,

I am currently researching on whether to use Http Get or Post in my Ajax Enabled website.
Can you tell me what protocol does the RadAjax controls like RadAjaxPanel use by default?(I think it uses Http Post)
Also can you tell me what should I do If I have to change the Protocol.
I would be extremely thankful if I can get a quick response.

Thanks in advance.
Shashank
Shashank Pandey
Top achievements
Rank 1
 asked on 29 Sep 2011
2 answers
59 views
Hi,
I am writing a server composite control which would reuse some of the RadComboBox functionality. When running a page which uses that control I am getting a JavaScript error (see the bottom of my post). I have narrowed the problem down to the RadComboBox itself. Is there any known fix to that?

Here is my server control (stripped as much as I can to produce the problem) :

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
  
namespace ServerControl1
{
    [ToolboxData("<{0}:ScapaLoad runat=server></{0}:ScapaLoad>")]
    public class ScapaLoad : CompositeControl
    {
        RadComboBox _combo;
  
        [
            Category("Data"),
            Description("Data source ID for populating combo box"),
            PersistenceMode(PersistenceMode.Attribute)
        ]
        public string DataSourceID
        {
            get
            {
                EnsureChildControls();
                return _combo.DataSourceID;
            }
            set
            {
                EnsureChildControls();
                _combo.DataSourceID = value;
            }
        }
  
        [
            Category("Data"),
            Description("Database field with value to be used as a value of each combo box element"),
            PersistenceMode(PersistenceMode.Attribute)
        ]
        public string DataValueField
        {
            get
            {
                EnsureChildControls();
                return _combo.DataValueField;
            }
            set
            {
                EnsureChildControls();
                _combo.DataValueField = value;
            }
        }
  
        [
            Category("Data"),
            Description("Database field to be used as a visible text for chosen element from combo box"),
            PersistenceMode(PersistenceMode.Attribute)
        ]
        public string DataTextField
        {
            get
            {
                EnsureChildControls();
                return _combo.DataTextField;
            }
            set
            {
                EnsureChildControls();
                _combo.DataTextField = value;
            }
        }
  
  
        protected override void CreateChildControls()
        {
            Controls.Clear();
  
            _combo = new RadComboBox();
  
            Controls.Add(_combo);
        }
  
        protected override void RecreateChildControls()
        {
            EnsureChildControls();
        }
  
        protected override void Render(HtmlTextWriter writer)
        {
            AddAttributesToRender(writer);
            _combo.RenderControl(writer);
        }
    }
}


A page using the control (again, stripped down to just the control itself) :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
  
<%@ Register Assembly="ServerControl1" Namespace="ServerControl1" TagPrefix="aspSample" %>
<%@ 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">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
          
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>
  
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" EnableDelete="true" 
            ContextTypeName="TestLinqDataContext" EntityTypeName="" TableName="Users">
        </asp:LinqDataSource>
  
        <aspSample:ScapaLoad ID="ScapaLoad1" runat="server" 
            DataSourceID="LinqDataSource1" DataValueField="Name" DataTextField="Name" />
  
    </div>
    </form>
</body>
</html>

The javascript error I am getting is:

'undefined' is null or not an object  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9d03845-da3c-45e9-ab05-79ee502af576%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.712.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3af9722142-3e1c-4803-86df-ecfc0d24f144%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a1e771326%3aaa288e2d, line 6 character 74101


Please help, it is urgent. If you need any additional data please let me know and I will provide it if I can.

Thanks,

Daniel Gruszczyk
Ivana
Telerik team
 answered on 29 Sep 2011
0 answers
144 views
Hi
I create a ajaxpanel and add to it some of control,also i add a ajaxpanel .i assign always mode two ajaxpanel ,equal to "Always".
but when either of ajaxpanel updating other of ajaxpanel hide from my page..
  i test this scenario with updatepanel asp.net and it worked correctly...

        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" 
            Width="100%"  LoadingPanelID="RadAjaxLoadingPanel1" 
            onajaxsettingcreated="RadAjaxPanel1_AjaxSettingCreated" >
            <asp:Button Text="FirstButton" ID="FirstButton" runat="server" onclick="FirstButton_Click" />
            <asp:TextBox runat="server" ID="FirstTxt" />
  
            <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="200px" 
                Width="300px" LoadingPanelID="RadAjaxLoadingPanel1" 
                onajaxsettingcreated="RadAjaxPanel2_AjaxSettingCreated" >
                <asp:Button Text="SecondButton" ID="SecondButton" runat="server" 
                    onclick="SecondButton_Click" style="margin-bottom: 0px" />
                <asp:TextBox runat="server"  ID="SecondTxt"/>
                <asp:Label  ID="SecondLable" runat="server" />
            </telerik:RadAjaxPanel>
          
        </telerik:RadAjaxPanel>
  
  
protected void RadAjaxPanel1_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
        {   
            e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
        }
  
        protected void RadAjaxPanel2_AjaxSettingCreated(object sender, Telerik.Web.UI.AjaxSettingCreatedEventArgs e)
        {
            e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Always;
        }
  
        protected void FirstButton_Click(object sender, EventArgs e)
        {
            SecondTxt.Text = "ok";
        }
  
        protected void SecondButton_Click(object sender, EventArgs e)
        {
  
            FirstTxt.Text = "ok";
            SecondTxt.Text = "ok";
            txt3.Text = "ok";
            SecondLable.Text = "ok";
           }
mehdi
Top achievements
Rank 1
 asked on 29 Sep 2011
1 answer
80 views
Hello!
I want to work with grid with large amount of rows(~300000) using ASP.Net AJAX Telerik Controls.
But grid works very slowly. have you some solution for my problem?
Shinu
Top achievements
Rank 2
 answered on 29 Sep 2011
8 answers
141 views

Hello All,

I have a very simple Calendar with 2 months, Sep and Oct
The SpecialDay is Oct first an must be only visible on the second month in the calendar.
So far so good.

 

In the first month of the calendar this date is not visible as a SpecialDay but when I hover over the date then the date lights-up while it must be disabled and when hover-off then the style is applied from the special date.

 

The screen dump’s show before hover and after hover.

 

I set the date on DayRender and compare the date to e.Day and the Month.

The tooltip is only visible on the second calendar month so I know the a have the correct day and month.

 

How can I disable the days form the other months without setting the property ShowOtherMonthsDays="false" ?

<head runat="server">
    <title></title>
    <style type="text/css">
        .RadCalendar .event_future
        {
            border: 1px solid Green !important;
            background-color: Lime;
        }
        .RadCalendar .rcOtherMonth a, .RadCalendar .riDisabled a
        {
            cursor: default;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
        <telerik:RadCalendar ID="RadCalendar1" runat="server" CultureInfo="nl-NL" EnableMultiSelect="False"
            EnableMonthYearFastNavigation="False" FirstDayOfWeek="Monday" MultiViewRows="2"
            TitleFormat="MMM" ShowDayCellToolTips="false" Skin="WebBlue" TitleAlign="Center" 
            UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
        </telerik:RadCalendar>
    </form>
</body>
</html>

 

Protected Sub RadCalendar1_DayRender(sender As Object, e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender
    Dim SpecialDay As Date = DateValue("1-10-2011")
    If e.Day.Date = SpecialDay AndAlso e.View.MonthStartDate.Month = SpecialDay.Month Then
        e.Day.IsSelectable = True
        e.Day.IsDisabled = False
        e.Cell.ToolTip = "SpecialDay"
        e.Cell.CssClass = "event_future"
    Else
        e.Day.IsSelectable = False
        e.Day.IsDisabled = True
        e.Cell.CssClass = "riDisabled"
    End If
    Me.RadCalendar1.SpecialDays.Add(e.Day)
End Sub

 

 

 

Best regards,

 

Marco

Marco
Top achievements
Rank 2
 answered on 29 Sep 2011
1 answer
49 views
Hi guys

I created a simple project at home with telerik controls...Now when i open my project at school i get the errors "Failer to create designer" How can i solve this?
Princy
Top achievements
Rank 2
 answered on 29 Sep 2011
1 answer
154 views
hi all :)

I want my window to be maximized by default when it open

how can I do that ?


thanks :)
Princy
Top achievements
Rank 2
 answered on 29 Sep 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?