Hi all,
I created a data navigation bar as a user control and I need to add it in a RadStatusStrip.
I know how to do this with the basic StatusStrip using ToolStripControlHost, but I don't know if it's doable and didn't find any way to make the same thing with the telerik version.
Also, I'd like to avoid putting the RadStatusStrip directly into a user control as it may have a different content depending on the form used.
Any help on how to achieve this would be appreciable.
Using : VS2013 C#
Best regards
Dear Team.
I am working with RadPivotGrid and RadChartView
I want to change from bar chart to line chart at runtime. However, when I run the line e.Series = new LineSeries(); the chart changes to line ine, but the legend lables dissapear.
Can you please help.
Thanks,
Nishan
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;
using Telerik.Charting;
using Telerik.WinControls.UI.Export;
namespace SizeFreq13c
{
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public RadForm1()
{
InitializeComponent();
}
private void RadForm1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'pELAGOSDataSet.Rep_SizeC' table. You can move, or remove it, as needed.
try
{
this.rep_SizeCTableAdapter.Fill(this.pELAGOSDataSet.Rep_SizeC);
radChartView1.DataSource = radPivotGrid1;
// This event handler for pivot chart update completed
this.radPivotGrid1.ChartDataProvider.SeriesCreating += new Telerik.WinControls.UI.SeriesCreatingEventHandler(this.ChartDataProvider_SeriesCreating);
this.radPivotGrid1.ChartDataProvider.UpdateCompleted += new System.EventHandler(this.ChartDataProvider_UpdateCompleted);
}
catch (Exception Ex)
{
MessageBox.Show("Most Lilely case for this error is Access is locked. Try closing and opening Access \n \n" + Ex);
}
}
void ChartDataProvider_UpdateCompleted(object sender, EventArgs e)
{
foreach (CartesianSeries series in this.radChartView1.Series)
{
switch (this.comboBox1.Text)
{
case "Cluster":
series.CombineMode = ChartSeriesCombineMode.Cluster;
break;
case "Stack":
series.CombineMode = ChartSeriesCombineMode.Stack;
break;
case "Stack100":
series.CombineMode = ChartSeriesCombineMode.Stack100;
break;
default:
series.CombineMode = ChartSeriesCombineMode.Cluster;
break;
}
}
}
void ChartDataProvider_SeriesCreating(object sender, Telerik.WinControls.UI.SeriesCreatingEventArgs e)
{
e.Series = new LineSeries();
}
private void button1_Click(object sender, EventArgs e)
{
{
PivotExportToExcelML exporter = new PivotExportToExcelML(this.radPivotGrid1);
exporter.ExportVisualSettings = true;
exporter.SheetName = "Sheet";
string fileName = "c:\\IOTC\\pelagos\\VesselActivity_Catch.xml";
exporter.RunExport(fileName);
try
{
exporter.RunExport(fileName);
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
}
private void button2_Click(object sender, EventArgs e)
{
string filePath = "c:\\IOTC\\pelagos\\SizeFrequency.png";
this.radChartView1.ExportToImage(filePath, this.radChartView1.Size, System.Drawing.Imaging.ImageFormat.Png);
}
private void splitContainer2_Panel1_Paint(object sender, PaintEventArgs e)
{
}
//update the chart when the combo is changed
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
this.radPivotGrid1.ChartDataProvider.UpdateChartData();
}
}
}
I am trying to display labels on horizontally stacked bars. I want the labels inside each bar, but I can't figure out to accomplish this.
See attachment "labels-on-bars" for how I want it to look, using our previous charting tool. The other attachments "regular-labels" are just turning on showlabels, which has them positioned where I want vertically but not horizontally, and smart labels, which is just a jumbled mess of silliness.
I tried different "strategies" for the smart labels and I also tried deriving my own, but there was no clear indication of what to do in "CalculateLocations".
I've hooked into the LabelFormatting, and I can get the position of each bar, but the BarLabelElement only seems to have a position offset and no way to set the position in absolute coordinates.
I re-size the calendar size and font size like picture 1.
But when I click the title, it will show a sub-form, the font-size of sub-form hasn't been changed (Shown in picture 2).
How can I re-size the font size of sub-form?
Regards
Hello,
I want to use Regex in search term. PDF files have some accented characters (like a > â) . And the search results do not give the desired result. Is there a way to use Regex in search?
Best regards...
Hi,
We have a combo box with 2 columns ( Lets say Code --> Display member and Description ) and added Composite filters in all visible columns :
this.AutoFilter = true;
if (MutipleColumnSearch)
{
for (int i = 0; i < strVisiblecolumns.Length; i++)
{
FilterDescriptor visibleColFD = new FilterDescriptor(strVisiblecolumns[i], FilterOperator.Contains, null);
this.EditorControl.FilterDescriptors.Add(visibleColFD);
}
this.EditorControl.FilterDescriptors.LogicalOperator = FilterLogicalOperator.Or;
}
else
{
FilterDescriptor filter = new FilterDescriptor();
filter.PropertyName = this.DisplayMember;
filter.Operator = FilterOperator.StartsWith;
this.EditorControl.MasterTemplate.FilterDescriptors.Add(filter);
}
Requirement : On Searching , first it should check exact match with display member else contains search with rest of columns.
For Example : if search with ES ( code ) it should list ES row as first row.
Please find attached images.
I have a chart with several percentile bands, which I want displayed on top of each other. When I create the RangeBarSeries for each and add them, they appear staggered rather than on top of each other (see attached).
I searched the docs and the forum and I found posts for other platforms that suggested setting the CombineMode to None, but that didn't make any difference. I also tried setting the CombineMode to every other possible setting, and also set the StackGroupKey but nothing helped.
I had initially just used the bar series with a transparent bar at the bottom to lift everything up to the proper starting height, BUT I have a switch to go between area and bar, and the area seems to have a bug that made the transparency not work. Ironically with the ranges, the bar fails and the area works.
Hi All!
I am relatively new to Telerik, so just exploring.. I am developing an application in VS 2013 that uses Telerik UI for Winforms.
The titlebar of my application is dynamic, i.e, <AppName>Version:<VersionNo.> where the Version No. is dynamic. Now, I need to show "Version<VersionNo>" with a different backcolor that the rest of the titlebar.
I have so far been unable to find anything that can help. Is this even doable?
Please guide.
Thanks!
Does the current version (2016) of the PDFViewer for WinForms support the loading of the document from a stream (rather than from the file system)?