Telerik Forums
UI for WinForms Forum
3 answers
193 views

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

Dimitar
Telerik team
 answered on 31 Mar 2016
2 answers
101 views
When setting the Text property of a RichTextEditor control with <html> formatting, the Size property is evidently being ignored. Other tags such as <b>, <br>, and <u>, appear to be working as expected.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Mar 2016
3 answers
134 views

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();

        }
    }
    
}

Dimitar
Telerik team
 answered on 29 Mar 2016
6 answers
452 views

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.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Mar 2016
2 answers
421 views

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

Jaspy
Top achievements
Rank 1
 answered on 29 Mar 2016
2 answers
200 views

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

Bekir
Top achievements
Rank 1
Iron
 answered on 28 Mar 2016
2 answers
658 views

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.

Surya
Top achievements
Rank 1
 answered on 28 Mar 2016
5 answers
189 views

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.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Mar 2016
1 answer
69 views

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!

Dimitar
Telerik team
 answered on 28 Mar 2016
1 answer
122 views

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)?

 

Dimitar
Telerik team
 answered on 28 Mar 2016
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
CheckedDropDownList
ProgressBar
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?