Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
136 views
I am getting this error when loading the asp.net page with RadEditor on it.
How to fix this?
Alexander
Top achievements
Rank 1
 answered on 07 Sep 2012
4 answers
108 views
I have a webpage with a RadScheduler but the recurring appointments are not showing up correctly.

A single appointment will show up with the recurrence symbol on it, ahd when I double click the appointment it will ask if i want to use just the single appointment or the series.  However, no other appointments show up, only the first.

I am using the same information in the database and also have a WinForms application that uses that Schedueler.  That information displays correctly.

I have a SQL database with as far as I can tell correct fields.
The Create Table Script:
/****** Object:  Table [dbo].[ScheduledTable]    Script Date: 08/30/2012 13:49:05 ******/
SET ANSI_NULLS ON
GO


SET QUOTED_IDENTIFIER ON
GO


SET ANSI_PADDING ON
GO


CREATE TABLE [dbo].[ScheduledTable](
[AppointmentID] [bigint] IDENTITY(1,1) NOT NULL,
[Subject] [varchar](max) NULL,
[StartTime] [datetime] NULL,
[EndTime] [datetime] NULL,
[Description] [varchar](max) NULL,
[RecurrenceRule] [varchar](max) NULL,
[ParentID] [varchar](200) NULL,
  CONSTRAINT [PK_ScheduledTable] PRIMARY KEY CLUSTERED 
(
[AppointmentID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]


GO


SET ANSI_PADDING OFF
GO

On the page load I have: 

  Dim AppointmentDT As DataTable = SQLRowToDt(ConnStr, "Select * From AppointmentTable Where EmployeeID = " & EmployeeID)


        RadScheduler1.DataSource = AppointmentDT
        RadScheduler1.DataKeyField = "AppointmentID"
        RadScheduler1.DataStartField = "StartTime"
        RadScheduler1.DataEndField = "EndTime"
        RadScheduler1.DataSubjectField = "Subject"
        RadScheduler1.DataRecurrenceField = "RecurrenceRule"
        RadScheduler1.DataRecurrenceParentKeyField = "ParentID"
        RadScheduler1.DataDescriptionField = "Description"

The RecurrenceRule in the database is: FREQ=DAILY;UNTIL=20120905T000000Z
The ParentID in the database is set to NULL

I have attached a screenshot of what the Appointment currently looks like.

Please let me know if you can help.

Thanks
Boyan Dimitrov
Telerik team
 answered on 07 Sep 2012
5 answers
683 views
Hi there I am quite new to telerik controls and am trying to get item labels to appear in the legend of my pie chart. Someone recently got fired and I have taken over this piece of work so I am not entirely sure exactly how this code works at the moment. Another problem I have is when the pie slices get to thin the labels for that slice appear away from the correct slice! I've turned on showlabelconnectors as without it its hard to see exactly where some labels belong. I have managed to get each colour of the pie chart listed in the legend but no names appear next to the legend which looks normal as from looking at the code I dont see anything which could possibly show the item names. I've attached an image below of the pie chart. Currently this is what code I have:

CourseGroupUsagePieChart.Chart.Series.Clear();
            CourseGroupUsagePieChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 270f;
            CourseGroupUsagePieChart.PlotArea.XAxis.AutoScale = true;
            CourseGroupUsagePieChart.CustomPalettes.Add(seriesPalette);
            CourseGroupUsagePieChart.SeriesPalette = "seriesPalette";

ChartSeries ySeries_Pie = new ChartSeries();
 ySeries_Pie.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
ySeries_Pie.Appearance.ShowLabelConnectors = true;

   foreach (TotalReport item in totalReportCourseGroupList)
            {
                // x-axis
                CourseGroupUsagePieChart.PlotArea.XAxis.AddItem(String.Format("{0} {1}", item.Name, item.Name));


                // y-axis
                ySeries_Pie.AddItem(item.TotalReportSummary.UsageSeconds, item.TotalReportSummary.UsageSeconds.ToString());
                //series.AddItem(item.TotalReportSummary.UsageSeconds, item.TotalReportSummary.UsageSeconds.ToString());
            }


            CourseGroupUsagePieChart.AutoLayout = true;
            CourseGroupUsagePieChart.AutoTextWrap = true;
            CourseGroupUsagePieChart.AddChartSeries(ySeries_Pie);

Here is the asp:
<telerik:RadChart ID="CourseGroupUsagePieChart"  runat="server" Width="700" Height="600" Skin="Vista" IntelligentLabelsEnabled="true" Appearance-LegendDisplayMode="ItemLabels" OnItemDataBound="CourseGroupUsagePieChart_ItemDataBound">
              
                <ChartTitle>
                <TextBlock Text="Course Group Usage - Top 10">
                </TextBlock>
            </ChartTitle>
            </telerik:RadChart>

I've crawled through examples and demos of radcharts and cant seem to find my answer :(. Please help it will be greatly appreciated
James
Top achievements
Rank 1
 answered on 07 Sep 2012
1 answer
51 views
How to change the HeadText of GridBoundColumn in edit mode?
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2012
1 answer
236 views
Rad grid has a property called confirm text which is used to pop up a confirm dialog box.
eg.

 

 

<telerik:GridButtonColumn ConfirmText="Delete this Location?" ConfirmDialogType="RadWindow"

 

 

 

ConfirmDialogHeight="25px" ConfirmDialogWidth="250px" ConfirmTitle="Delete" ButtonType="ImageButton"

 

 

 

CommandName="Delete" />

 

Confirm dialog box has two button submit and cancel.
By default when popup open, focus is on submit button. Could you tell me how to change the focus to cancel button.

Thanks
Yogesh.
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2012
4 answers
138 views

I'm using this control ,
<telerik:radbutton enablesplitbutton="true"

i feel that is look like drop down list ,
i want to look like button view ,
how i achieve that ..

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 07 Sep 2012
1 answer
68 views
Whether the item.UpdateValues ()  only works for GridBoundColumn instead of GridTemplateColumn in Update_Command event? Since I have no way to get updated item by UpdateValues if the column is GridTemplateColumn.
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2012
1 answer
84 views

Hi!

How can I get the next or previous Date when i push the the Navigation button in code behind?
It's possible?
Princy
Top achievements
Rank 2
 answered on 07 Sep 2012
1 answer
70 views
How to export the radgrid in xlsx format.
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2012
2 answers
1.2K+ views
Hello,
I have a MDI web form and dynamically creating new radwindows inside that MDI form. I want to some operations on close (X) of that window. For that i have added RadWindow1.OnClientClose = "OnClientCloseClick"; . In OnClientCloseClick event, i have called __doPostBack() in order to implement my logic. On closing window, postback is working. But when i am checking  Request.Form["__EVENTTARGET"] , it's value becomes null. When i am doing the same in a normal aspx page(no windowmanager here), it is showing some value.
             In MDI form  i have added new window dynamically.
    protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                RadWindow RadWindow1 = new RadWindow();
                RadWindow1.ID = "RadWindow1";
                RadWindow1.VisibleOnPageLoad = true;
                RadWindow1.OnClientClose = "OnClientCloseClick";
                RadWindow1.NavigateUrl = String.Format("Default.aspx?ID=" + Request.QueryString["ID"]);
                RadWindowManager1.Windows.Add(RadWindow1);
}
}
JS
 function OnClientCloseClick(sender, args) {
                   __doPostBack('SaveSettingOnClose', 'OnClose');
                   }
function __doPostBack(eventTarget, eventArgument) {
           document.Form1.__EVENTTARGET.value = eventTarget;
           document.Form1.__EVENTARGUMENT.value = eventArgument;
           document.Form1.submit();
        }
HTML
<input type="hidden" name="__EVENTTARGET" value="">
    <input type="hidden" name="__EVENTARGUMENT" value="">

---------------
In Default.aspx (new window created)
in page load
 if (Request.Form["__EVENTTARGET"] == "SaveSettingOnClose")
            {

                SaveSettingOnClose();

            }
Here Request.Form["__EVENTTARGET"] becomes null. so control is not going inside the if block.

Please provide me solution to solve this issue.

Thanks
Abhi
Abhi
Top achievements
Rank 1
 answered on 07 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?