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

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

 

Danail Vasilev
Telerik team
 answered on 07 May 2015
10 answers
264 views
Hello sir,
We are not able to set focus on Rad Upload control also on another page on which there is  RadEditor we are unble to set focus on any other control,whereas if we remove Rad Editor from that page then everything works fine,Please help us out,
Thanks,
Peter Filipov
Telerik team
 answered on 07 May 2015
1 answer
73 views

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..

Danail Vasilev
Telerik team
 answered on 07 May 2015
3 answers
106 views

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

Magdalena
Telerik team
 answered on 07 May 2015
4 answers
257 views
Is there are way to turn off the hover settings for disabled tabs?  I don't want the HoveredCssClass settings to be applied when the tab is disabled.
Jason
Top achievements
Rank 1
 answered on 06 May 2015
2 answers
104 views

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?

IRAJA
Top achievements
Rank 1
 answered on 06 May 2015
1 answer
119 views

Hi

I am working on rad grid having detail grid binding scenario, My requirement is I have to expand detail grid when clicked on first column field, but I have to merge two rows of first column of parent grid and when tried to expand the same it has to show the detail grid under the second row not under the first row of parent grid.

It is explained clearly in the attachment file.

Please let me know how can I achieve this.

 

Thanks

Rakesh

Daniel
Telerik team
 answered on 06 May 2015
20 answers
224 views
I am using RadOrgchart  to Pdf   control  in project.I  did not  find the "demo-container size-narrow" css  file  .Can you  please  give me  the "demo-container size-narrow" css  ASAP.But  I got  the Following Error  Message .can  you please  find the  Attached  Design issue  .



Thanks&Regards
P.Suneelkumar
Ivan Danchev
Telerik team
 answered on 06 May 2015
1 answer
553 views

Hi Dear

I saw a project that implement shamsi date (Jalali date) on RadDateTimePicker with telerik winform at ease.But i can not implement that on asp.net

 

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TelerikShamsiDate
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            ChangeCulture();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }

        private static void ChangeCulture()
        {
            CultureInfo c = new CultureInfo("fa-Ir");
            var info = c.DateTimeFormat;

            var p = info.GetType().GetField("calendar", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance);
            p.SetValue(c.DateTimeFormat, new PersianCalendar());

            info.AbbreviatedDayNames = new string[] { "ی", "د", "س", "چ", "پ", "ج", "ش" };
            info.DayNames = new string[] { "یکشنبه", "دوشنبه", "ﺳﻪشنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه" };
            info.AbbreviatedMonthNames = new string[] { "فروردین", "ارديبهشت", "خرداد", "تير", "مرداد", "شهریور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند", "" };
            info.MonthNames = new string[] { "فروردین", "ارديبهشت", "خرداد", "تير", "مرداد", "شهریور", "مهر", "آبان", "آذر", "دی", "بهمن", "اسفند", "" };
            info.AMDesignator = "ق.ظ";
            info.PMDesignator = "ب.ظ";
            info.ShortDatePattern = "yyyy/MM/dd";
            info.FirstDayOfWeek = DayOfWeek.Saturday;
            info.ShortestDayNames = new string[] { "ی", "د", "س", "چ", "پ", "ج", "ش" };

            System.Threading.Thread.CurrentThread.CurrentCulture = c;
            System.Threading.Thread.CurrentThread.CurrentUICulture = c;
        }
    }
}

Please show me the right way.

Thanks.

 

Daniel
Telerik team
 answered on 06 May 2015
1 answer
78 views

function onClickHandler(e) {
    var targedNodeName = e.target;
    var radwindow1 = ('#RadWindow1');
 
    if (radwindow1[0] != null) {
        if ($telerik.isMouseOverElementEx(radwindow1[0], e)) return;
           $telerik.
        // $telerik.close(radwindow1[0]);
        //$telerik.close(radwindow1);
        //radwindow1.close();
        radwindow1[0].close();
         
    }
I have tried several ways to close the radwindow that I draw dynamically from .cs code;

 

Here is my java script:

 

and my cs code:

RadWindowManager windowManager = new RadWindowManager();
windowManager.ID="RadWindowManager1";
RadWindow widnow1 = new RadWindow();
 
// Set the window properties   
widnow1.NavigateUrl = "Detail.aspx" + "?event_id=" + rb.CommandArgument;
widnow1.ID = "RadWindow1";
widnow1.CssClass = "rdWindow1";
widnow1.Behaviors = WindowBehaviors.Close;
widnow1.Modal = true;
widnow1.Width = 600;
widnow1.Height = 740;
widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code   
windowManager.Windows.Add(widnow1);
this.form1.Controls.Add(widnow1);

 

 

Its failing to do .close() even though I do find the control.  Complaining that object doesn't have .close().

 

Thanks

 

Magdalena
Telerik team
 answered on 06 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?