Hello,
I'm working on mapping column data to RadHTMLChart control & I'm running into a label display issue. One of the column colors that is used by my graph is black & it makes the tooltip label difficult to read since it also defaults to black. Is there a way to determine what color the column will be when the color for the column is set dynamically so that I can update the black column's tooltip label color?
Thanks,
Johnathan Beam
Hello,
I am creating a pie chart with three items
Responded/ Responded with comments/ Not responded
DataTable dt = GetDataTable();
PieSeries chartData = new PieSeries();
PieChart1.ChartTitle.Text = "Title";
chartData.StartAngle = 90;
chartData.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.PieAndDonutLabelsPosition.Center;
SeriesItem item = new SeriesItem();
SeriesItem item1 = new SeriesItem();
SeriesItem item2 = new SeriesItem();
foreach (DataRow row in dt.Rows)
{
if (row["Responded"] != null && Convert.ToBoolean(row["Responded"]))
{
i++;
}
else if (row["Respondedwithcomments"] != null && Convert.ToBoolean(row["Respondedwithcomments"]))
{
j++;
}
else if(row["Responded"] == null)
{
k++;
}
}
chartData.LabelsAppearance.DataFormatString = "{0}";
chartData.TooltipsAppearance.DataFormatString = "{0} ";
item.Name = "Responded";
item.YValue = i;
item.BackgroundColor = System.Drawing.Color.YellowGreen;
item1.Name = "Responded with comments";
item1.YValue = j;
item1.BackgroundColor = System.Drawing.Color.PaleVioletRed;
item2.Name = "Not Responded";
item2.YValue = k;
item2.BackgroundColor = System.Drawing.Color.LightYellow;
chartData.Items.Add(item);
chartData.Items.Add(item1);
chartData.Items.Add(item2);
PieChart1.PlotArea.Series.Add(chartData);
Each time the chart refreshes to get the new data , the series name adds up so and I am also not sure that I am doing it the right way , please help!
I'm trying to bind to a templated column with a radDropDownList control in it. I am using editmode=batch on the grid. So when editing no events are fired server side.
How do I go about binding to the dropdownlist when the grid is populated server side. I tried binding to the dropdownlist when the grid is built server side in the itemdatabound event but the e.Item.FindControl("radddlParameterId") does not find the control.
I want the grid to show text and then when edited switch to the populated dropdownlist that the user can select from.
Thanks,
Steve

Hi,
I've looked at a few examples of performance improvement for grids that deal with lots (160K) records. I haven't seen anything yet that looks at using the OFFSET/LIMIT functionality that you often see with web services. Why is that?
It strikes me that if you can do it for web services then the standard grid should be able to cope with this, performance would be dramatically improved.
Anyway if anyone has a good example of using a radgrid with OFFSET/LIMIT interfacing to a stored procedure I'd be very grateful to get a pointer to it!
Regards
Jon

Hi
Just need some help converting a VB grid to C#.
Binding is to a datatable deserialised from JSON using NewtonSoft.Json library.
I have the following line in VB that works OK:
If e.Appointment.DataItem("UsageType") = 1 Then...
However the same line in C#
if (e.Appointment.DataItem("UsageType") == 1) {
Errors with a red squiggle under DataItem with the following text:-
SchedulerEventArgs does not contain a definition for Dataitem and no extension method DataItem accepting a first argument of type SchedulerEventArgs could be found.
I have the following using statements:
using Telerik.Web.UI;
using Telerik.Web;
using System.Data;
Hi,
I am having some issue with the RadDropDownTree.
After I select a node on the RadDropDownTree, the property rddt.SelectedText sometimes displays the rddt.EmbeddedTree.SelectedNode.Text multiple times.
Please see attached image.

Hi
I am using a RADBUTTON in the itemtemplate of Radlistview.
Kindly let me know how to add the click-event for that RADbutton on server-side and perform the below operations
1) While clicking the RADBUTTON, : Need to store the bookid of the selected item in the Session
2) Then redirect to cartpage.aspx (After storing the id in the session)
Pls guide how to achieve this scenario
<telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="ProductItemContainer"
DataKeyNames="BookID" OnNeedDataSource="RadListView1_NeedDataSource" >
<LayoutTemplate>
<fieldset>
<table>
<tr>
<td>
<asp:Panel ID="ProductItemContainer" runat="server">
</asp:Panel>
</td>
</tr>
</table>
</fieldset>
</LayoutTemplate>
<ItemTemplate>
<fieldset>
<table>
<tr>
<td class="productItem">
<a href="default2.aspx?isbn=<%# Eval("BookID")%>">
<img src="<%# Eval("imageurl")%>" alt="#= BookName #" />
</a>
</td>
</tr>
<tr>
<td>
<%# Eval("BookName")%>
</td>
</tr>
<tr>
<td>
<telerik:RadButton CommandName="Button1" ID="BtnAddtoCart" runat="server" Text="Add to Cart"></telerik:RadButton>
</td>
</tr>
</table>
</fieldset>
</ItemTemplate>
</telerik:RadListView>
