Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
261 views

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

Danail Vasilev
Telerik team
 answered on 15 Apr 2016
1 answer
60 views

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!

               

 

 

 

 

 

binny
Top achievements
Rank 1
 answered on 14 Apr 2016
2 answers
147 views

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

Steve
Top achievements
Rank 1
 answered on 14 Apr 2016
3 answers
179 views
Dear Sirs

I ran into a nasty problem thats really annoying me. I setup a Rad Grid with various groupings.
I can now expand and collapse those groups and it gets remembered over postbacks.
Once i click into "edit" on an item, all collapsed / expanded groups revert to their original state (either all expanded or all collapsed)

Why isnt it keeping my collapse/expand state?

Thanks for the help

Chris
Eyup
Telerik team
 answered on 14 Apr 2016
9 answers
726 views

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

Marin
Telerik team
 answered on 14 Apr 2016
6 answers
309 views
hello

I am loading an image in a radimage editor. I am resizing the image and I found that these operations are not reflected in the server side. Why it is like this? I want every change to be available on the server side. Suppose I load the image and rotate and resize it, I want these to be available on the server. Is this possible?

thanks
lovella
Vessy
Telerik team
 answered on 14 Apr 2016
3 answers
364 views

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;

 

Konstantin Dikov
Telerik team
 answered on 14 Apr 2016
1 answer
240 views

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.

 

Nencho
Telerik team
 answered on 14 Apr 2016
1 answer
387 views

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>
      

 

Eyup
Telerik team
 answered on 14 Apr 2016
1 answer
81 views
Hi! I have a bar serie graph and linear serie graph in a rad html chart, the user can modify the values of the liner serie graph its possible I update by code the values of only linear bar but the radhhtml chart updatse both the graph and linear bar is possible only update the linear serie graph?
Danail Vasilev
Telerik team
 answered on 14 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?