I am new to Prometheus, in fact I am new to Telerik. I was very impress to see the online demo of Prometheus so I downloaded the trial and I am now trying to make this work, more specifically the RadChart component. After a complete day I have to say that it's still not working. I am following the instructions found at http://www.telerik.com/help/radcontrols/prometheus/ and I am now at the page "Quick Start: Create a Bar Chart with Simple Static Data" and I am trying my best to make this work but I must say that it is quite a challenge. I guess I choose to worst component to start with and that the others would probably way easier to get up and running.
So after doing what is mentioned in the Quick Start page where are the errors I encounter until now
First Error:
"Parser Error Message: Unknown server tag 'telerik:ChartSeries'."
After a bit of research I found that the instruction <%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %> has to be added to the top of the page. Why is this not done automatically by the wizard or as soon as a chart is drop on the design surface?
Second Error:
"The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2007.3.1425.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />"
Ok so I added this to my web.config but again why is this not done automatically?
Third problem:
"Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.]
Telerik.Web.UI.MapAreaBuilder.GenerateImageMap(IContainer container) +0
Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +1128
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +9
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558"
I read on the forum to put CreateImageMap="false" solve the problem, not sure why but I did it anyway.
Forth Error:
"Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Telerik.Charting.ChartSeriesCollection must have items of type 'Telerik.Charting.ChartSeries'. 'Telerik.Charting.ChartSeries' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
Source Error:
Line 34: </Items>
Line 35: </telerik:ChartSeries>
Line 36: <Telerik.Charting.ChartSeries Name="Sales"> <-- NOTE: The error is on this line
Line 37: <Appearance Border-Color="Black">
Line 38: <FillStyle MainColor="199, 243, 178" SecondColor="17, 147, 7"></FillStyle>"
Ok so now I am stuck, can anyone help me ?
Btw I am using VS 2008, .Net 3.5
Thank you,
Eric
MyPage
page1 = (MyPage) owner.Page;
string param1 = page1.MyParam;
and use the folling code in my .aspx file
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="Slut" DataKeyField="ID" LastDayOfWeek="Sunday" ProviderName="SchedulerData" Culture="Danish (Denmark)" FirstDayOfWeek="Monday" Skin="Outlook" DataRecurrenceField="Gentagelse" DataRecurrenceParentKeyField="GentagelseID" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Emne" CustomAttributeNames="Kommentar" EnableCustomAttributeEditing="True">
<AppointmentTemplate>
<%# Eval("Subject") %>
<%# Eval("Kommentar").ToString() != String.Empty ? "[" + Eval("Kommentar") + "]" : String.Empty %>
</AppointmentTemplate>
<MonthView HeaderDateFormat="MMMM yyyy" />
<DayView HeaderDateFormat="dddd dd MMMM yyyy" />
<WeekView ColumnHeaderDateFormat="ddd, d" />
</telerik:RadScheduler>
I get the following error
System.NullReferenceException: Object reference not set to an instance of an object.
But when I use your example Defining Resources I get no error.
this code looks like this
<telerik:RadScheduler ID="RadScheduler1" runat="server" Width="569px" Skin="Outlook" Culture="Danish (Denmark)" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" DataEndField="Slut" DataKeyField="ID" DataRecurrenceField="Gentagelse" DataRecurrenceParentKeyField="GentagelseID" DataSourceID="AppointmentsDataSource" DataStartField="Start" DataSubjectField="Emne" OnAppointmentCreated="RadScheduler1_AppointmentCreated" EnableCustomAttributeEditing="True" CustomAttributeNames="Kommentar">
<ResourceTypes>
<telerik:ResourceType KeyField="UserID" Name="Bruger" TextField="UserName" ForeignKeyField="BrugerID" DataSourceID="UsersDataSource" />
</ResourceTypes>
<AppointmentTemplate>
<%# Eval("Subject") %>
<%# Eval("Kommentar").ToString() != String.Empty ? "[" + Eval("Kommentar") + "]" : String.Empty %>
</AppointmentTemplate>
<MonthView HeaderDateFormat="MMMM yyyy" />
<DayView HeaderDateFormat="dddd d MMMM yyyy" />
<WeekView ColumnHeaderDateFormat="ddd d" />
</telerik:RadScheduler>
Why that.
Should I get all users to get work?
Hope you can help me.
Best regards
Hans Jørgen
Hi,
In RadGird I have taken one RadComboBox, in that I have taken the thins as follow
<telerik:RadGrid ID="rg_AddPorts" runat="server" AllowPaging="True" Skin="Default"
GridLines="Horizontal" PageSize="10" Width="100%" OnNeedDataSource="rg_AddPorts_NeedDataSource"
OnInsertCommand="rg_AddPorts_InsertCommand" OnItemDataBound="rg_AddPorts_ItemDataBound"
OnUpdateCommand="rg_AddPorts_UpdateCommand">
<MasterTableView CommandItemDisplay="TopAndBottom" AutoGenerateColumns="false" DataKeyNames="Port_PortNo"
EditMode="EditForms" CommandItemSettings-AddNewRecordText="Add Ports">
<Columns>
………
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
<FormTemplate>
<!-- Grid Table Designing->
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="TblMaster">
<tr>
<td>
<telerik:RadComboBox ID="rcbxCity" runat="server" Height="190px" Width="127px" MarkFirstMatch="true"
EnableLoadOnDemand="true" HighlightTemplatedItems="true" DataTextField="Place_City"
DataValueField="Place_No" DropDownWidth="300">
<HeaderTemplate>
<table style="width: 375px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 125px;">
City
</td>
<td style="width: 125px;">
State
</td>
<td style="width: 125px;"> Country
</td></tr></table> </HeaderTemplate> <ItemTemplate> <table style="width: 375px" cellspacing="0" cellpadding="0"> <tr> <td style="width: 125px;" class="comboItemCell"> <div class="comboItem"> <%# DataBinder.Eval(Container.DataItem, "place_City")%> </div> </td> <td style="width: 125px;" class="comboItemCell"> <div class="comboItem"> <%# DataBinder.Eval(Container.DataItem, "place_State")%> </div> </td> <td style="width: 125px;" class="comboItemCell"> <div class="comboItem"> <%# DataBinder.Eval(Container.DataItem, "place_Country")%> </div> </td> </tr></table> </ItemTemplate> </telerik:RadComboBox> </td>
protected void rg_AddPorts_ItemDataBound(object sender, GridItemEventArgs e)
{
if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
{
GridEditFormItem item1 = (GridEditFormItem)e.Item;
RadComboBox rcbxPortCity = item1.FindControl("rcbxCity") as RadComboBox;
DataSet ds=BO_AddPorts.Fill_PortCity();
rcbxPortCity.DataSource = ds;
rcbxPortCity.DataBind();
}
}
And when I click “AddNew Record”Button on RadGird its Biding Perfectly. But when I want to Edit Records then I am nt able to Bind Corresponding record
Edit Mode
This time I am n table to bind The corresponding record.
Here I am taking this PlaceNo,City,State,country in to separate table and Bidning like this. Pls Guide me how to Bind Exact Inserted record when I will perform Edit Mode.