Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
Hi All

I am trying to bind list below to a Radchart but it isn't binding correctly.

Can anyone please help?

Below code and Markup - attached JPG of what it looks like when I run it.

It should group by name, trnasmission and fuel - then display results for the year

I would like to see 4 series :-
BMW Auto Petrol
BMW Manual Petrol
BMW Auto Diesel
BMW Auto Petrol

Any help much appreciated.

Kind Regards,
Ram

if (!IsPostBack)
            {
                    var bm = new List<BMW>();
                    bm.Add(new BMW() { name = "BMW", value = 1, transmission = "auto", year = 2012, fuel = "Petrol" });
                    bm.Add(new BMW() { name = "BMW", value = 2, transmission = "auto", year = 2013, fuel = "Petrol" });
                    bm.Add(new BMW() { name = "BMW", value = 3, transmission = "manual", year = 2012, fuel = "Petrol" });
                    bm.Add(new BMW() { name = "BMW", value = 4, transmission = "manual", year = 2013, fuel = "Petrol" });
                    bm.Add(new BMW() { name = "BMW", value = 5, transmission = "auto", year = 2012, fuel = "Diesel" });
                    bm.Add(new BMW() { name = "BMW", value = 6, transmission = "auto", year = 2013, fuel = "Diesel" });
                    bm.Add(new BMW() { name = "BMW", value = 7, transmission = "manual", year = 2012, fuel = "Diesel" });
                    bm.Add(new BMW() { name = "BMW", value = 8, transmission = "manual", year = 2013, fuel = "Diesel" });
 
                    testing.PlotArea.XAxis.DataLabelsColumn = "year";
                    testing.DefaultType = Telerik.Charting.ChartSeriesType.Line;
 
                    //Use DataGroupColumn in order to group items
                    testing.DataGroupColumn = "name";
                    testing.DataManager.ValuesYColumns = new string[] { "transmission","fuel"};
 
                    testing.DataSource = bm;
                    testing.Height = 1200;
                    testing.Width = 1090;
                    testing.DataBind();
          }
}
 
 public class BMW
        {
            public string name { get; set; }
            public double value { get; set; }
            public string transmission { get; set; }
            public int year { get; set; }
            public string fuel { get; set; }
        }

<telerik:RadChart ID="testing" runat="server" Width="400px" SeriesOrientation="Vertical">
      <Series>
          <telerik:ChartSeries DataYColumn="value" Type="Line" Appearance-ShowLabels="true">
          </telerik:ChartSeries>
       </Series>
  </telerik:RadChart>

Ram
Top achievements
Rank 1
 answered on 04 Sep 2013
6 answers
276 views

Hello,

  I ahve a radwindow and rad menu and I am populating the radmenu dynamically f and on click of a particular child item i need to open a radwindow but when ever clicks on the rad menu options the rad window is opened for two seconds and closed how to stop the postback generated by radMenu.

SKande
Top achievements
Rank 2
 answered on 04 Sep 2013
1 answer
88 views
Hi, 

 I am new to radcontrols...
 How can I disable  'addnewrecord'  button when the grid is in edit mode.

Thanks, 
Ryann
Princy
Top achievements
Rank 2
 answered on 04 Sep 2013
1 answer
137 views
How to set tab index rad grid view items?
Maria Ilieva
Telerik team
 answered on 04 Sep 2013
11 answers
222 views
Hi,

I get an error to retrieve the text of a RadTextBox in my code behind only with Firefox and Chrome (IE is ok).

Protected Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click
Dim MyLogin1 As String = TxtUsername.Text

If I use in my page:

<telerik:RadTextBox ID="TxtUsername" ValidationGroup="LoginGroup" MaxLength="30" runat="server"></telerik:RadTextBox>

I get an error but if I use 

<asp:TextBox ID="TxtUsername" ValidationGroup="LoginGroup" MaxLength="30" runat="server"></asp:TextBox>

all is fine I get the value.

I don't know if related to that problem but for Firefox and Chrome I have to ad a
If Page.IsValid Then
in order to get the validation working in these 2 browsers.

Also I had the same problem in IE last week when trying to use an hidden captcha.

Thanks for you support
Angel Petrov
Telerik team
 answered on 04 Sep 2013
1 answer
83 views
Hi,

I am trying to export radgrid data.  how can I add text at the end of exported file. I need the file in excel.

Thanks and regards..
Dawson
Princy
Top achievements
Rank 2
 answered on 04 Sep 2013
1 answer
120 views
I have a radcombobox

<telerik:RadComboBox ID="cboReferring" runat="server" DataSourceID="dsReferringDocs"
                            DataTextField="DisplayName" DataValueField="PCPID" Width="300px" ShowMoreResultsBox="true"
                            ItemsPerRequest="10" AppendDataBoundItems="True" EnableVirtualScrolling="False"
                            EnableAutomaticLoadOnDemand="False" EmptyMessage="Select a Referring Provider"
                            TabIndex="12">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="ED Admit No Doc" Value="0" />
                            </Items>
                        </telerik:RadComboBox>

From my code behind I try to select a value by

cboReferring.SelectedValue = coreData.Nz(dr("sReferringProviderNumber").ToString(), "")

The only way I could get it to selected value to select an item is to turn off the 
EnableVirtualScrolling="False"
                            EnableAutomaticLoadOnDemand="False"

If these are set to true, then it wil not select any item.  


Hristo Valyavicharski
Telerik team
 answered on 04 Sep 2013
4 answers
49 views
Hi all 

I create a site , then  I add  a telerik radeditor control , but the image manage can not show the libraries in the sharepoint . I save the page, then edit the web part , the image manage can show the libraries and upload button can work. 
I grant full control permission to a user. then I use the user to edit the web part , the image manage can not show the libraries until I wait some minutes then It can show the libraries in the share point 2010.

please help me to find why  the image manage response delay? Thanks a lot.
Ianko
Telerik team
 answered on 04 Sep 2013
1 answer
93 views
Hello!

How to prevent the appointment by moving between groups in RadScheduler?
Can you help me?

Thank you for the respond.
Boyan Dimitrov
Telerik team
 answered on 04 Sep 2013
0 answers
139 views
I need to get all the selected items from RadDropDownTree and change it to XML format


<telerik:RadDropDownTree ID="rddt" runat="server" CheckBoxes="TriState" DefaultMessage="Select documents" DataFieldID="ID" DataFieldParentID="parentID" DataTextField="name" DataValueField="ID" DataSourceID="ds2">
                    <ButtonSettings ShowCheckAll="true" ShowClear="true" />
                    <Localization CheckAll="Select All Resources" />                  
</telerik:RadDropDownTree>

How can I get the DataFieldID and DataFieldParentID value from dropdowntree selected value?

var xdoc = new XDocument(
                           new XElement("Root",
                                  new XElement("Resource",
                                          rddt.SelectedValue.Select(x => new XElement("ID", x)),
                                          rddt.SelectedValue.Select(x=>new XElement("ParentID",x)))));

Thanks,
Guru
Top achievements
Rank 1
 asked on 04 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?