Hello,
i have a project class with a list of employees assigned to each project
what i want to achieve here is that i want the stacked column chart to display names of projects on X axis for each series then add each resource of this project to the series as a series item with Y-Value of the total hours consumed by this employee on this project which is also a property coming from ProjectResource Class, i do it this way
Private Sub LoadAllProjects()
dim Projects as new list(of Project)
Projects = GetAllProjects()
For Each nProject as Project in Projects
Dim nSeries as new ColumnSeries
Dim nAxisItem as new AxisItem
nAxisItem.labelstring = nProject.Name
nSeries.name = nProject.Name
For Each nEmp as Employee in Project.Resources
dim nItem as new SeriesItem
nItem.Name = nEmp.Name
nitem.yvalue = nEmp.TotalUtilized
nSeries.Items.Add(nItem)
Next
RadHtmlChart1.PlotArea.Series.Add(nSeries)
Next
End Sub
Using this the either all items get loaded into first series or they duplicate in each series, i have tried everything possible and its not working
also the legend is display the project.names thats because im assigning Series.Name to Project.Name and i have to remove it but i need the legend to display the names of employees in each project
Help is really appreciated, thanks
I noticed when I have an error, the ajax loading panel just goes away and doesn't show the error details on my label.
On my content page I have a sub
Sub UpdateRecord(ByVal strRetry As String, ByVal strSender As String)
Dim sb As New StringBuilder()
Try
Throw New Exception("Oh no! deadlock")
Catch ex As Exception
'Handle true exceptions here
litError.Text = sb.ToString()
If litError.Text > "" Then
pnlError.Visible = True
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("window.scrollTo(0,0);")
End If
End Try
End Sub
Master page
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
CustomErrors is off
How do I get this to show the error info on the screen. This worked fine in 1.1 and 2.0 apps.
I dynamically created raddocks on the server side.
dock.DockPositionChanged += new DockPositionChangedEventHandler(dock_DockPositionChanged);
So I used this line of code to add event handler, however it only gets fired when the control is dropped to another position. It doesn't get fired if I dropped it to the same position.
How do I make it gets fired even if I drop it to the same position. Thanks.
how could I program that the draghandle in a horizontal slider can only be moved one tick to the right?
So the moves to the left and multiple ticks to the right are blocked client side?
Marc
hi,
i want to display AxisY in the right in the pic i have Axis Y wich is have green color i bind my chart programmatically this is my code
SqlConnection con = new SqlConnection(@"Data Source=.;Initial Catalog=DB_WEB_Q_TEL;Integrated Security=True");
string req = "select time_tag,[ain_sebou|Niveau] as AIN_SEBOU_NIVEAU , [allal_fassi|Niveau]as ALLAL_FASSI_NIVEAU from QTSW_DATA1 where time_tag between ('01/01/2015') AND ('20/01/2015')";
DataSet DS = new DataSet();
con.Open();
if (DS.Tables.Contains("TRChart"))
{
DS.Tables.Remove("TRChart");
}
SqlDataAdapter da = new SqlDataAdapter(req, con);
da.Fill(DS, "TRChart");
con.Close();
RadHtmlChart chart = new RadHtmlChart();
chart.DataSource = DS.Tables["TRChart"];
chart.DataBind();
ScatterLineSeries SL = new ScatterLineSeries();
SL.DataFieldX = "time_tag";
SL.DataFieldY = "AIN_SEBOU_NIVEAU";
SL.MarkersAppearance.Visible = false;
SL.TooltipsAppearance.DataFormatString = " {1} at {0:dd-MM-yyyy HH:mm}";
SL.LabelsAppearance.Visible = false;
chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "{0:dd-MM-yyyy HH:mm}";
chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 90;
chart.PlotArea.XAxis.BaseUnit = Telerik.Web.UI.HtmlChart.DateTimeBaseUnit.Days;
chart.PlotArea.XAxis.DataLabelsField = "time_tag";
chart.PlotArea.Series.Add(SL);
// serie2
ScatterLineSeries SL1 = new ScatterLineSeries();
SL1.AxisName = "Additional";
SL1.DataFieldX = "time_tag";
SL1.DataFieldY = "ALLAL_FASSI_NIVEAU";
SL1.MarkersAppearance.Visible = false;
SL1.TooltipsAppearance.DataFormatString = " {1} at {0:dd-MM-yyyy HH:mm}";
SL1.LabelsAppearance.Visible = false;
chart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "{0:dd-MM-yyyy HH:mm}";
chart.PlotArea.XAxis.LabelsAppearance.RotationAngle = 90;
chart.PlotArea.XAxis.BaseUnit = Telerik.Web.UI.HtmlChart.DateTimeBaseUnit.Days;
chart.PlotArea.Series.Add(SL1);
//chart.PlotArea.XAxis.Visible = false;
AxisY ax = new AxisY();
ax.Name = "Additional";
ax.Color = Color.Green;
ax.Width = 2;
chart.PlotArea.AdditionalYAxes.Add(ax);
pls i need help very quickly
Hi,
i am using RadPivotGrid with RadHtmlchart and saving the configuration panel settings using persistence framework custom storage in form of xml in DB (http://www.telerik.com/help/aspnet-ajax/persistence-framework-custom-storage-provider.html). Please confirm if I can save the selected color for series also in the same xml OR let me know if there is any other feature of telerik I can use for the same.
For ex as per attached image if i can save the color selected by user corresponding to Pending,Completed or In-progress..
I would like to change the toggle image for just one RadComboBox - instead of a down arrow I would like to display a magnifying glass (search). I am ok with modifying our skin files, etc., but want the scope to affect only one RadComboBox. Even if I hide the entire down arrow and put the icon right up next to it, that's fine. I tried setting ShowToggleImage="false", and it went away, but the background is still there. :(
Not being a UI guy, can someone help me out with this?
Thank you in advance,
John
Hi everyone.
This week I started to use the Telerik RadPivotGrid, and today I need to export the results shown in the Pivot to the Excel.
Ok, no problems for this, but, for my business, I even have to get the row and columns descriptors in the exported File.
As in the files below, in the screen, I see the file: screen.png, but in the report; I see the file: excel.png (without the descriptors and, for some people, without sense).
There is any way to solve it?