Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
168 views
Hi,

I am new for telerik charting. i want to display a chart , in which values are binding from DB.  i tried using following code but am facing performance issue - it is very very  slow. can u suggest the needful

Here is the code which i used:
aspx code
<telerik:RadChart ID="RadChart1"  runat="server"  ChartImageFormat="Jpeg"  ChartTitle-Visible="True">
                    <Appearance BarWidthPercent="60"  ></Appearance>
                    <Legend Appearance-Position-AlignedPosition="BottomLeft" Appearance-Location="OutsidePlotArea" >
                            <TextBlock Appearance-Position-AlignedPosition="BottomLeft"></TextBlock>
                    </Legend
                    <ChartTitle TextBlock-Text="Forecast Vs Plan" > </ChartTitle>
           
                    <Series>
                         <telerik:ChartSeries  DataYColumn="Base"  Name="Base">
                                <Appearance  FillStyle-MainColor="#ffff66"  FillStyle-SecondColor="#ffff66" Border-Color="#000000" Border-PenStyle="Solid">
                                </Appearance>
                   </telerik:ChartSeries>
        
                   <telerik:ChartSeries DataYColumn="Plan" Name="Plan">
                             <Appearance  FillStyle-MainColor="#ff0033" FillStyle-SecondColor="#ff0033"  Border-Color="#000000" Border-PenStyle="Solid">
                            </Appearance>
                   </telerik:ChartSeries>
         
                    <telerik:ChartSeries DataYColumn="ForeCast"  Name="ForeCast" >
                            <Appearance   FillStyle-MainColor="#6600cc" FillStyle-SecondColor="#6600cc"  Border-Color="#000000" Border-PenStyle="Solid">
                            </Appearance>
                    </telerik:ChartSeries>
                    </Series>
  
          <PlotArea  Appearance-Position-Y="100"
          <XAxis VisibleValues="Positive">
          <Appearance  MajorGridLines-PenStyle="Solid" MajorGridLines-Color="#000000">
           <TextAppearance AutoTextWrap="True" ></TextAppearance>
          </Appearance>
          </XAxis>
          <YAxis VisibleValues="Positive" >
          <Appearance  MajorGridLines-PenStyle="Solid"  MajorGridLines-Color="#000000"></Appearance>
          </YAxis>
            </PlotArea>
           </telerik:RadChart>
aspx.cs code:
protected void Graph_Load()
   {
       decimal Plan, Base, Fore, max = 0;
       DataSet dsResults = new DataSet();
       dsResults = ForeCastBO.loadForeCast(Setinputvalues());
       DataTable dt_Graph = new DataTable();
       dt_Graph.Columns.Add("Division", typeof(String));
       dt_Graph.Columns.Add("Plan", typeof(String));
       dt_Graph.Columns.Add("Base", typeof(String));
       dt_Graph.Columns.Add("ForeCast", typeof(String));
       if (dsResults.Tables[0].Rows.Count > 0)
       {
           for (int i = 0; i < dsResults.Tables[0].Rows.Count; i++)
           {
               dt_Graph.Rows.Add(dsResults.Tables[0].Rows[i][3].ToString(), Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][2].ToString())),
                                    Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][4].ToString())), Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][5].ToString())));
               Plan = Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][2].ToString()));
               Base = Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][4].ToString()));
               Fore = Decimal.Round(Convert.ToDecimal(dsResults.Tables[0].Rows[i][5].ToString()));
               if (Plan > Base)
                   max = Plan;
               else
                   max = Base;
               if (Fore > max)
                   max = Fore;
           }
           RadChart1.DataSource = dt_Graph;
           RadChart1.PlotArea.XAxis.DataLabelsColumn = dt_Graph.Rows[0].ToString();
           int width;
           width = 120 * (dt_Graph.Rows.Count);
           RadChart1.Width = width;
           RadChart1.Height = 400;
           RadChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White;
           RadChart1.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White;
           RadChart1.PlotArea.YAxis.AutoScale = false;
           RadChart1.PlotArea.YAxis.MaxValue = Convert.ToDouble(max);
           RadChart1.PlotArea.YAxis.ScaleBreaks.MaxCount = 7;
           RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = System.Drawing.Color.Black;
           RadChart1.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.Unit.Pixel(100);
           // bind to the datasource
           RadChart1.DataBind();
       }
   }


Thanks,
Harin
Ves
Telerik team
 answered on 01 Apr 2011
2 answers
138 views
I'm looking for a way to prevent the automatic processing of uploaded files (moving them from the temp folder to the target folder, along with some custom processing that I put in the OnFileUploaded event) if the user doesn't explicitly ask for the files to be processed.

More detail on the scenario:  The async uploader is on a page with multiple tabs.  When the user wants to upload files, they click on a tab where the async uploader exists.  The tabs are configured to do a postback.  I think that if they were to select some files, then change their mind and move on to another tab (causing a postback), that the files shouldn't be processed.  However, I can't see a way to prevent that from happening.  I want to put a button there that lets the user "accept" the files and start processing them.

I'm looking for a supported, documented means to only process the files if explicitly fired off (via a button onclick handler, for example), and delete the temporary files on postback if the processing isn't requested.  Is this possible/available?

Thanks.
Genady Sergeev
Telerik team
 answered on 01 Apr 2011
1 answer
923 views

Hi,
I am using the licenced version of Rad controls.
I have created a wizard using aspx pages.
on first page i have a combobox and next button. and on 2nd page i have a previous button. Previous button has code
"window.history.back(-1);" OnClientClicked event.
From first page I select item from combobox and click on next button. As a result request is redirected to 2nd page where i click on the previous button. So request is redirected to 1st page. And it shows the selected value in combobox.
But when i access the combobox selectedvalue it shows value at 0 index not the selected one.

Please suggest solution.

Dimitar Terziev
Telerik team
 answered on 01 Apr 2011
4 answers
266 views

I'm thinking this is only something I need to worry about in my development environment, but I'd like to be sure, and if possible, find a way to supress the error.

If I have the page loaded with the Async Upload control on it, and I (1) make any change to the page, or (2) recycle the app pool, or (3) restart the application by changing the web.config, the next postback causes a huge alert window to open that shows the following:

RadUpload Ajax callback error. Source url returned invalid content: 
  
<html>
    <head>
        <title>The resource cannot be found.</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>
  
    <body bgcolor="white">
  
            <span><H1>Server Error in '/CABS_Dev' Application.<hr width=100% size=1 color=silver></H1>
            <h2> <i>The resource cannot be found.</i> </h2></span>
            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
            <b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.
            <br><br>
            <b> Requested URL: </b>/CABS_Dev/Telerik.RadUploadProgressHandler.ashx<br><br>
            <hr width=100% size=1 color=silver>
            <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
            </font>
    </body>
</html>
  
<!-- 
  
[HttpException]: The file '/CABS_Dev/Telerik.RadUploadProgressHandler.ashx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.UI.SimpleHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->
  
../Telerik.RadUploadProgressHandler.ashx?RadUrid=ddbc8bc9-8901-4652-8b85-9c7590f67636
  
Did you register the RadUploadProgressHandler in web.config?
  
Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.

I didn't even have to upload any files.  If i just load the page, go to the tab that has the async upload control in it, then click on another tab (causing a postback) after doing one of the above actions, I get this error.

Any way to trap/check/supress this?

Thank you.
Genady Sergeev
Telerik team
 answered on 01 Apr 2011
3 answers
184 views
Is there any way to display an aspx page inside a tooltip window? Similar to the RADWindow.

And also pass data between both pages..
Svetlina Anati
Telerik team
 answered on 01 Apr 2011
1 answer
69 views
hi,

how can i show image at right side of selected node????
Veronica
Telerik team
 answered on 01 Apr 2011
2 answers
65 views
Hi

  We are facing problem with drag and drop feature in tree view particularly in MAC, when we drag and drop items inside grid view from one item to another or if we try to rename the items inside grid view or if we drag n drop items to telerik tree view, data won't get updated or its updated very very slowly.

  Just wanted to know if this a known issue in MAC or if there is work around.

thanks
Pramodh
Pavel
Telerik team
 answered on 01 Apr 2011
5 answers
155 views

We are evaluating Rad Editor (version 5) for MOSS. We have a custom theme for our site and after using the Rad Editor, we noticed that the styles are not the same as our theme. What my end result is that when ever a user adds this webpart to their site,  and adds content, the fonts and styles would be the same fonts as our custom theme. I have read the documentation at http://www.telerik.com/support/kb/aspnet-ajax/sharepoint/populating-radeditor-s-apply-css-class-dropdown-with-custom-styles.aspx and followed these instructions, but it seems that when I add content to the page it does not follow the new CSS file that I created at  /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/custom.css. I added this to my toolsfile.xml

<cssFiles> 
    <item name="/_wpresources/Custom.css " /> 
  </cssFiles>


It looks like its still referencing HtmlEditorTableFormats.css and HtmlEditorCustomStyles.css.
Again, my end result would be that when a user adds content to this webpart it would use our theme css file. I just downloaded this webpart and haven't had much time to play with  it.
Stanimir
Telerik team
 answered on 01 Apr 2011
2 answers
79 views
Hello,

I'm just embarking on using the Async Upload.  This is an awesome and easy-to-use tool.  I was able to take a cumbersome process where users were uploading several files one at a time, and make it so they could select all of the files at once.  Beautiful!

Everything is working well, except that I think the progress area has room for improvement.

First, and most importantly, when I'm uploading several files, the progress meter seems only to be aware of the file that's currently uploading, as well as files that have completed.  For example, say you're uploading 5 files.  When the first file is uploading, both progress bars reflect only that file.  The top one shows the percentage of the current file, and the bottom one shows 0%, or 0/1 files.  Once the first file completes, and the second one starts, the top bar shows progress considering only the first two files, so it starts at 50% (assuming the files are roughly the same size), and the bottom bar shows 50%, or 1/2 files.  Once the second file completes, and the third one starts, the top bar shows progress considering only the first three files, so it starts at about 66% (again, assuming the files are roughly the same size), and the bottom bar shows 66%, or 2/3 files. 

Am I doing something wrong, or is this a known bug?  FYI, I tested the demo page at http://demos.telerik.com/aspnet-ajax/upload/examples/async/multiplefileselection/defaultcs.aspx?product=asyncupload, and I saw the same behavior.  I selected 3 files that were about 3MB each.

Second, I find the fact that the progress area disappears upon completion of the uploads to be visually confusing.  Consider when an upload only takes a second or two.  You don't have sufficient time to recognize what you're looking at before it disappears.  I would like the option to have the progress area stay open.  Is this possible?  None of the demos do this, so I fear not.  If that's the case, would you consider making this an option?

Thank you.
Peter Filipov
Telerik team
 answered on 01 Apr 2011
2 answers
90 views
Currently we are working on a new project. With the new RadRibbonBar (using v.2011.1.315.40) - which is very nice - we decide to try to implement a RibbonBar for the RadEditor. Basically we are rewiring all the calls to the RadEditor using the javascript fire() method just as in the example at the demo site.

Sofar this was working perfectly. However when doing:

editor.fire("MediaManager");

we will get the javascript error:

"Runtime-fout Microsoft JScript: Sys.ArgumentNullException: Dialog Parameters for the MediaManager dialog do not exist
Parameter name: dialogName"


A trace on the  editor javascript object showed that

editor._dialogOpener._dialogDefinitions.MediaManager

Is expected but does not exists. (See attachment) For all to other dialogs like 'LinkManager' or 'TableWizard' it the DialogDefinitions are set.

---

To overcome this problem we tried to create a work-arround:

var ImageManagerDefinitions = editor._dialogOpener._dialogDefinitions.ImageManager;
var MediaManagerDefinitions = objectCloner(ImageManagerDefinitions)
MediaManagerDefinitions.Title = "Media Manager";
editor._dialogOpener._dialogDefinitions.MediaManager = MediaManagerDefinitions;

However this is not the full solution.. Because the ImageManager is now loaded. To make the work-arround functional de SerizalizedParameter of the Media Manager is required. Sofar we didn't find out how to get this Parameter.

Hope you can fix this bug and  tell us how to get that SerizalizedParameter  or tell us that we are doing something realy wrong here...





Dobromir
Telerik team
 answered on 01 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?