| Q1 08 | 150453000 |
| Q2 08 | 158688000 |
| Q4 08 | 1515 |
| Q1 09 | 1000 |
| Q4 08 | 2525 |
| Q1 09 | 2000 |
1st one series its displaying correct but in 2nd there is no data for Q1 08 and Q2 08 still its plotting line chart from Q1 08 to Q2 08. it should plot from Q4 08 to Q1 09. :(
Below is my code... if somthing is missing then plz let me know.
for(int MainSeries = 0 ; MainSeries < 2 ; MainSeries ++)
{
DataTable chardata= gettingdata();
CharSeries series = gettingseries here;
List<String> lAxislabel = new List<String> ();
if(chardata!=null)
{
foreach(DataRaw drv in chardata.Rows)
{
//Adding ding values to list
lAxislabel.Add[drv[Xvalue].Tostring();
ChartSeriesItem item = new ChartSeriesItem ();
//Adding values fot chartseriesitem
item.YValue = Math.Round(double.Parce(drv[Yvalue].toString(),1);
series.item.Add(item);
}
}
if(lAxislabel.count >0 )
{
ChartAxisitem[] lsXAxis = new ChartAxisitem[lAxislabel.count];
for(int i=0;i<lAxislabel.count;i++)
{
lsXAxis [i] = new ChartAxisitem(lAxislabel[i]);
}
//objChart is chart object
objChart.Autolayout = true;
objChart.series.Add(series);
objChart.PlotArea.xAxis.AutoScale = false;
if(objChart.PlotArea.xAxis.items.count = 0)
objchart.PlotArea.xAxis.items.Addrange(lsXAxis );
objchart.PlotArea.xAxis.LayoutMode = ChartAxisLayoutMode.inside;
objChart.PlotArea.YAxis.AutoScale = true;
objchart.legend.Apperance.Visible = true.
}
}
Mainseries means 2 seres for which we are geeting data frm 2 different datatable.
may be there are some speeling mistake in above code but ignore thos ebcz am typing this code here only. above code is not cpy pasted from original code. so sorry for tthat and plzzzzzz help me... why 2nd series data is coming wrong :(
function confirmOnDragItem_Dropping(sender, args) { var callBackFunction = Function.createDelegate(sender, function (shouldSubmit) { if (shouldSubmit) { //Allow it to happen } }); var text = "Are you sure you wish to move this item?"; radconfirm(text, callBackFunction, 300, 100, null, "RadConfirm"); args.set_cancel(true); }<telerik:RadPanelBar Height="400PX" runat="server" ID="RadPanelBar1" ExpandMode="FullExpandedItem"
DataFieldID="Id" DataFieldParentID="Padre" DataSourceID="ObjectDataSource1"
DataTextField="Nombre" Skin="Windows7">
</telerik:RadPanelBar>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="cargarMenu" TypeName="PL.Util.cliente">
</asp:ObjectDataSource>
public List<cliente> cargarMenu() { List<cliente> misClientes = new List<cliente>(); List<cms_spSeleccionarActivos_Result> resultadoActivos = listarActivos(); List<cms_spSeleccionarInactivos_Result> resultadoInactivos = listarInactivos(); cliente clienteActivo = new cliente(1, 0, "Activos"); cliente clienteInactivo = new cliente(2, 0, "Inactivos"); misClientes.Add(clienteActivo); misClientes.Add(clienteInactivo); foreach (cms_spSeleccionarActivos_Result item in resultadoActivos) { cliente miCliente = new cliente(item.cmr_id, Convert.ToInt32(item.ecm_id), item.cmr_nombre); misClientes.Add(miCliente); } foreach (cms_spSeleccionarInactivos_Result item in resultadoInactivos) { cliente miCliente = new cliente(item.cmr_id, Convert.ToInt32(item.ecm_id), item.cmr_nombre); misClientes.Add(miCliente); } return misClientes; }I have a ContentAreaCssFile that contains the following CSS:
| body |
| { |
| font-family:Verdana; |
| font-size:10px; |
| } |
| var contentArea = editor.get_ContentArea(); |
| if (contentArea != null) |
| { |
| contentArea.style.fontFamily = "Verdana"; |
| contentArea.style.fontSize = "10px"; |
| } |


I'm still conflicted about how to load the advanced form and prepopulate custom controls on an existing appointment.
Currently my GetAppointments method will return a collection of Telerik Appointments which the scheduler can easily understand and render.
When I go to edit an existing appointment, I need to bind data to custom controls that the appointment class does not have.
I'm still not certain how this is acheived.
I've toyed with creating my own appointment class that derives from the telerik one but the web service provider method I am using will only allow implementing methods that use the telerik appointment.
The thing that I am missing is what happens when a user clicks on the existing appointment.
Where does my custom data will come from?
I have the ID of my appointment in the telrik appointment object. Am I to make a DB call to get the extra info?
Here's an example of my provider.Get method. This method returns the appointments to the scheduler.
| List<Appointment> appointmentsList = new List<Appointment>(); |
| List<MySpecificAppointment> appts = new List<MySpecificAppointment>(); |
| using (AppointmentFacade af = new AppointmentFacade()) |
| { |
| appts = ocsf.GetSecureAppointments(HttpContext.Current.User.Identity.Name); //gets appts for user |
| } |
| foreach (var apt in appts) |
| { |
| Telerik.Web.UI.Appointment appointment = new Appointment(); |
| appointment.Start = apt.Start; |
| appointment.End = apt.End; |
| appointment.Description = apt.Description; |
| appointment.Subject = apt.Subject; |
| appointment.RecurrenceState = apt.RecurrenceState; |
| appointment.RecurrenceRule = apt.RecurrenceDescription; |
| appointment.RecurrenceParentID = apt.RecurrenceParentID; |
| appointment.ID = apt.Id; |
| appointmentsList.Add(appointment); |
| } |
I can fill the telrik appointment with common objects but anything specififc to MySpecififcAppointment is lost. When a user goes to edit the existing appointment, when the advanced form is loaded only Telerik.Appointment properties will be properly prepopulated.
Any help would be fantastic. Cheers.