Telerik Forums
UI for WinForms Forum
3 answers
184 views
Hi,
I am using Telerik RadChart for our sales persons target&realization&performance graphics (at least 2000 person's charts * 3 times for every entrance to the system). When i use asp.net for creating images on the fly, there is going to have a memory problem in IIS. It is going higher and higher and at last application server gives "Out of memory" error. So i determined that, i am going to preprocess those images and will going to show.  So there will not be any problem on web server i thought.

But, i have another problem on this new issue. I take all the code to the winform and create a new windows application to create all charts. After that, when i tried to create charts, again the memory usage is going higher for each time i saved the chart.

In my Code, there is a radChart1 object, which has one serie for a line, XAxis and YAxis properties are also specified. So in the code behind, I wrote this code;

******************************
DataSet

dsMsas = new DataSet(); //

dsMsas = df.GetMsas(); // it is getting from a database function class (all sales persons)

 

for (int i = 0; i < dsMsas.Tables[0].Rows.Count; i++)

{

Telerik.WinControls.UI.

 

RadChart rc = new Telerik.WinControls.UI.RadChart();

rc = (Telerik.WinControls.UI.

 

RadChart) radChart1.Clone();

try

{

 

 

string intMsaCode = dsMsas.Tables[0].Rows[i][0].ToString();
DataSet ds = new DataSet();

ds = df.GetMI(intMsaCode); //get Market Index data for sales persons

 

Double dblMinValue = 0, dblMaxValue = 0;

ChartSeries miDataSeries = rc.GetSeries("Series 1"); // only one serie in the chart

rc.ChartTitle.TextBlock.Text =

 

"MI " + ds.Tables[0].Rows[0][2].ToString() + " / " + ds.Tables[0].Rows[0][3].ToString();

if (miDataSeries != null)

{

dblMinValue =

Convert.ToDouble(ds.Tables[0].Rows[0][1]);

 

 

dblMaxValue = dblMinValue;

miDataSeries.DefaultLabelValue =

"#Y{N0}";

foreach (DataRow dbRow in ds.Tables[0].Rows)

{

 

if (dblMinValue > Convert.ToDouble(dbRow["pdMIMS"]))

dblMinValue =

Convert.ToDouble(dbRow["pdMIMS"]);

if (dblMaxValue < Convert.ToDouble(dbRow["pdMIMS"]))

dblMaxValue =

Convert.ToDouble(dbRow["pdMIMS"]);

 

 

rc.PlotArea.XAxis.AddItem(dbRow[

"psMonthName"].ToString().Substring(0, 3));

 

 

miDataSeries.AddItem(

Convert.ToDouble(dbRow["pdMIMS"]));

 

 

}

}

 

double dblAvgValue = Convert.ToInt32((dblMaxValue - dblMinValue) / ds.Tables[0].Rows.Count);

rc.PlotArea.YAxis.MaxValue =

Convert.ToDouble(Convert.ToInt32(dblMaxValue) + dblAvgValue);

 

 

rc.PlotArea.YAxis.MinValue = 

Convert.ToDouble(Convert.ToInt32(dblMinValue) - dblAvgValue);

int intStep = Convert.ToInt32((rc.PlotArea.YAxis.MaxValue - rc.PlotArea.YAxis.MinValue) / ds.Tables[0].Rows.Count);

rc.PlotArea.YAxis.Step = intStep <= 0 ? 1 : intStep;

 

rc.Save(

"MainPageImages/MI/" + intMsaCode + "_MI.png", System.Drawing.Imaging.ImageFormat.Png);
//after this part the memory is going higher, when i throw this part there is nothing happened, no memory usage.

miDataSeries.Clear();

rc.PlotArea.YAxis.Clear();

rc.PlotArea.XAxis.Clear();

rc.Dispose();

rc = 

null;

 

 

}

 

catch (Exception ex)

{

 

//nothing

 

string strE = ex.Message;

}

}

dsMsas =

null;

***************************************** 
SO, what can i do for that, i must solve this problem urgently.

Dwight
Telerik team
 answered on 07 Jul 2009
4 answers
110 views
Hi,

I have an application with multiple docked/tabbed panels. I also launch some panels as floating windows. All my panels derive from UserDockControl.

On certain panels I have OK/Cancel buttons which commit changes to the database, or cancel them. I would like to implement support for firing these buttons if/when the user hits Enter/Esc on their keyboard.

This is handled in normal WinForms via the AcceptButton and CancelButton properties of a Form. I see these properties exist for UserDockForm as well, however if I try deriving my panels from UserDockForm I get behaviour I am not happy with - i.e. I can't seem to launch the panels as floating.

Is there a way to implement the AcceptButton/CancelButton support in a panel derived from UserDockControl? 

What is the difference between UserDockControl and UserDockForm?

Thanks in advance,
Ben
Julian Benkov
Telerik team
 answered on 07 Jul 2009
5 answers
191 views

Hi,

I would like to use the multicolumn combobox as a lookup combobox. If I setup the mc combo with the same properties as a normal combobox it gives me the following message.
---------------------------
RadGridView Default Error Dialog
---------------------------
The following exception occurred in the RadGridView:

System.Data.ReadOnlyException: Column 'BusID' is read only.
   at System.Data.DataRow.set_Item(DataColumn column, Object value)
   at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
   at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value)
   at Telerik.WinControls.Data.DataAccessComponent.set_Item(GridViewRowInfo row, GridViewDataColumn column, Object value)
To replace this default dialog please handle the DataError event.
---------------------------
OK  
---------------------------
These are the (in my opinion) relevant designer.cs entry's

// cmbJourneyBus(multicolumncombobox)  
this.cmbJourneyBus.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue"this.journeyBindingSource, "BusID"true));  
this.cmbJourneyBus.DataSource = this.busBindingSource;  
this.cmbJourneyBus.DisplayMember = "BusNumber";  
this.cmbJourneyBus.ValueMember = "BusID";  
 
// radComboBox1 (standard radcombobox)  
this.radComboBox1.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue"this.journeyBindingSource, "BusID"true));  
this.radComboBox1.DataSource = this.busBindingSource;  
this.radComboBox1.DisplayMember = "BusNumber";  
this.radComboBox1.ValueMember = "BusID"

Am I doing something wrong or is this a bug?

Kind regards,

Edwin Dirkzwager
CIP Software BV
The Netherlands.

Julian Benkov
Telerik team
 answered on 07 Jul 2009
3 answers
377 views
Hi, i need to change the language for the option EnableFiltering in a GridView,  is it posible? For Example "Ends With" to "Termina con"


Regards!!

Deyan
Telerik team
 answered on 07 Jul 2009
3 answers
260 views
How can I specify which auto hide panel a dock panel hides to?  For example, I have a dock panel that is currently hiding to the bottom auto hide panel, but I would actually like it to hide on the left auto hide panel.
Georgi
Telerik team
 answered on 07 Jul 2009
1 answer
140 views
Hi
I need following functionality:
When user press a button I iterate all childrows checking the values in cells and if those values are not ok i pop out a Message.box warning the user. Then I want to enable him to change the incorrect cell value, therefore I need to make that cell editable. I use following code:

Me.RadGridView.Rows(i).ViewTemplate.AllowEditRow = True
Me.RadGridView.Rows(i).ViewTemplate.Rows(0).Cells(0).BeginEdit()
Me.RadGridView.PerformLayout()
Me.RadGridView.BeginEdit()

The cell stays readonly.
Thank you in advance!
Jack
Telerik team
 answered on 07 Jul 2009
1 answer
114 views
I noticed that the Ribbon Bar has an Exit and an Option button at runtime, but not at design time(?).
How can I register event handlers for these buttons?

Regards
Erwin
Deyan
Telerik team
 answered on 07 Jul 2009
2 answers
96 views
I just installed 2009 Q2 and my application that uses RafForm failed (no reference to Telerik.WinControls.RadForm). I was able to get it working by replacing the this with Telerik.WinControls.RadFormOld on the Inherts statement. (but now I get is obsolete warnings)

My question is: Where is RadForm? I can't find any reference to RadFormOld in the docs on online and I can find RadForm to use in the inherts statement.
George
Top achievements
Rank 1
 answered on 06 Jul 2009
3 answers
180 views
Hi, I was testing out the export to excel feature using the ExportToExcelML object but I found out that it throws out of memory exception when the grid has over 65000 records. I used the following source code:

         void exportExcel_Click(object sender, EventArgs e)
        {
            SaveFileDialog fileSave = new SaveFileDialog();
            fileSave.Filter = "Excel Files(*.XLS)|*.xls";
            if (fileSave.ShowDialog() != DialogResult.OK)
                return;
            string strExportLocation = fileSave.FileName;
            ExportToExcelML exporter = new ExportToExcelML();
            exporter.HiddenColumnOption = ExportToExcelML.HiddenOption.DoNotExport;
            bool exportThemeColors = false;
            exporter.RunExport(radGridView1, strExportLocation, ExportToExcelML.ExcelMaxRows._65536, exportThemeColors);
        
        }

did I do something wrong or is it a problem with the ExportToExcelML object?
Martin Vasilev
Telerik team
 answered on 06 Jul 2009
2 answers
84 views
- Significant parts of Q2 documentation seem to be missing (for example Ribbon Bar).
- Some links to the website are not working
- Even the title points to Q1
- Undocumented breaking changes ...

All in all I'm very disapointed with the quality of the docs once again. Where is the major improvement you promised us about one year ago?
This release feels very much like it should have been the Q2 beta.
Nikolay
Telerik team
 answered on 06 Jul 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?