Telerik Forums
UI for WinForms Forum
1 answer
153 views

Hi.  I am trying to programatically create a spreadsheet. I can add data and graphics to the spreadsheet, but I'm not able to add a series chart.   Hunting through the Telerik docs, I learned of something called a FloatingChartShape, and I think this is what I need.  Unfortunately, I'm not able to get access to this class.   

I'm using 2015.1.331.40 of the Telerik.Windows.Documents.Spreadsheets dll.  

Can someone point me in the direction of some documentation that describes how to add a series plot to a spreadsheet. 

Much thanks, 

Steve

Hristo
Telerik team
 answered on 01 Feb 2019
1 answer
94 views

Hi,

I have made classes for custom shapes that i have added to my toolbox. All these classes are derived from ElementShape. My problem however is that i would like to get the type of each shape as the way i created them with my own separate classes. Once these custom shapes are dragged from the toolbox and dropped onto the diagram, they are identified as RadDiagramShape. This is a problem because i need to identify of which type each shape is, as the way that i have declared them. For example i have declared a class with an Input shape, and a class with an Output shape. I need to know from the diagram, which shape is of what type, for example is it an input shape or is it an output shape. Because my current code only tells me that it is a RadDiagramShape. This does not allow me to know whether it is an input or an output. I have attached screenshot of the problem and of my code. 

Thank you,
Jacques.

Hristo
Telerik team
 answered on 31 Jan 2019
13 answers
174 views

I have inherited a radSpinEditor.

All my controls are 21px in height with the Fluent theme.

The bottom part (border) of the control is not shown correctly.

Attached is the rendering

 

My control:

public partial class IntegerTextBox : RadSpinEditor
    {
        public IntegerTextBox()
        {
            InitializeComponent();
 
            ShowUpDownButtons = false;
 
            Value = 0;
            DecimalPlaces = 0;
            TextAlignment = HorizontalAlignment.Right;
            Padding = new Padding(0, 0, 3, 0);
            Height = 21;
            MinimumSize = new Size(0, 20);
        }
    }

 

Here is what was generated in the designer :

//
// numericUpDownSalYears
//
this.numericUpDownSalYears.AutoSize = false;
this.numericUpDownSalYears.Location = new System.Drawing.Point(180, 36);
this.numericUpDownSalYears.MinimumSize = new System.Drawing.Size(0, 21);
this.numericUpDownSalYears.Name = "numericUpDownSalYears";
this.numericUpDownSalYears.Padding = new System.Windows.Forms.Padding(0, 0, 3, 0);
sebastien
Top achievements
Rank 1
 answered on 30 Jan 2019
23 answers
936 views

 Hi,

I'm trying to Convert an existing WinForms project

I have loaded our project (WinForms) into VS2015. It has update 3 and is using .NET 4.6.2.

I have run the update wizard.

The "Convert to Telerik Controls" menu does not appear!

I am using the trial version of Telerik, if that makes any difference.

Any idea what I am doing wrong?

Thanks in advance,

Jim

Dimitar
Telerik team
 answered on 30 Jan 2019
3 answers
38 views

Ok, so we have, like I said above, a scrollable panel, in a page view page and we are using Windows 8 theming in our application.  So, when we set all the controls on the form to that theme, any control that is in the Scrollable panel seems to get the back color from the page view page on which the scrollable panel is located instead of the back color from the scrollable panel.  This make our controls look weird. Attached is an example of what we are seeing.  You will see two scrollable panels, one on the form and the other on a page view page.  You can see the differences yourself.

 

This also happens if you use ThemeResolutionService.ApplicationThemeName = "Windows8" anywhere in our code as well

 

 

 

Dimitar
Telerik team
 answered on 30 Jan 2019
7 answers
182 views

Hi,

I'm trying to create row of check boxes. To do that I created custom cell element as described in the topic https://docs.telerik.com/devtools/winforms/controls/virtualgrid/cells/creating-custom-cells.

But after form resizing custom cells are displayed in wrong row.

Please find screenshot attached.

Is it a working way to implement row of custom cells in VirtualGrid?

Thank you in advance.

Hristo
Telerik team
 answered on 30 Jan 2019
7 answers
137 views
Hi,

I have a MDI Winform application that has menus on the parent form and also on the child forms.

The Child Form has menus such as: &File, &Edit and I would like these child form menu's to get focus when users press eg:

Alt + F or Alt + E

Unfortunately pressing the Alt key always gives focus to the Parent Form menu's.

How can I make the Alt key give focus to the Active Child Forms menu?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jan 2019
1 answer
367 views

we need to expand the rows based on some condition we have(based on a flag we set). we have tried expanding the rows in both CellFormatting event and ViewCellFormatting event.but it expands only the groups which are in visible. the groups which will be pulled on scrolling the grid are not expanded. please suggest us to fix this issue as it is very high priority for us.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jan 2019
1 answer
86 views

Hi.

Is there a way to get the text box values from the from the objects in my diagram into an array or a list? I would like to use the text box string values of the objects on the diagram values for program logic. 

Then i would also like t get all the X and Y coordinates of each object on the diagram into a list that will enable me to write logic based on the position of the X and Y values of my objects in my diagram.

Thank You!
Jacques

Hristo
Telerik team
 answered on 29 Jan 2019
1 answer
138 views

Hello,

I'm having some trouble changing the width of the editor for a gridViewComboBoxColumn. I'm using a RadDropDownListEditor. I took a look at this thread: https://www.telerik.com/forums/resize-combobox-27cd57e8088b from several years back but this method still didn't work for me. Below is what I have tried. What am I doing wrong? The dropdownwidth still remains the width of the column no matter what I try.

        private void radGridViewDetail_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            switch (radGridViewDetail.CurrentColumn.Name)
            {
                case "CO":
                case "CC":
                case "Acct":
                    e.Editor = new RadDropDownListEditor();
 
                    break;
            }
        }

        private void radGridViewDetail_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            if (e.ActiveEditor is RadDropDownListEditor)
            {
                //RadDropDownListEditor editor = (RadDropDownListEditor)e.ActiveEditor;
                RadDropDownListEditor editor = this.radGridViewDetail.ActiveEditor as RadDropDownListEditor;
                if (editor != null)
                {
                    RadDropDownListEditorElement element = (RadDropDownListEditorElement)editor.EditorElement;
                    element.DropDownSizingMode = SizingMode.UpDownAndRightBottom; // This does not work
                    element.PopupOpened += new EventHandler(editorElement_PopupOpened);
                    //((RadDropDownListEditorElement)((RadDropDownListEditor)this.radGridViewDetail.ActiveEditor).EditorElement).DropDownSizingMode = SizingMode.RightBottom;
                    //((RadDropDownListEditorElement)((RadDropDownListEditor)this.radGridViewDetail.ActiveEditor).EditorElement).DropDownMinSize = new Size(200, 100);
                    //((RadDropDownListEditorElement)((RadDropDownListEditor)this.radGridViewDetail.ActiveEditor).EditorElement).Popup.Width = 200;
                    element.DropDownMinSize = new Size(200, 100);
                    element.ArrowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // This works
                    //element.AutoCompleteMode = AutoCompleteMode.SuggestAppend; // This isn't needed
                    element.Popup.Width = 200;
                    element.DropDownWidth = 200;
                    
                    switch (radGridViewDetail.CurrentColumn.Name)
                    {
                        case "CO":
                            element.AutoCompleteDataSource = coTable;
                            element.AutoCompleteDisplayMember = "COMPANY_CODE";
                            element.AutoCompleteValueMember = "COMPANY_CODE";
                            element.DropDownWidth = 200;
                            break;
                        case "CC":
                            element.AutoCompleteDataSource = ccTable;
                            element.DisplayMember = "ADDRESS";
                            element.ValueMember = "COST_CENTER";
                            element.AutoCompleteDisplayMember = "ADDRESS";
                            element.AutoCompleteValueMember = "COST_CENTER";
                            break;
                        case "Acct":
                            element.AutoCompleteDataSource = glTable;
                            element.DisplayMember = "ACCT_DESC";
                            element.ValueMember = "GLMAJOR";
                            element.AutoCompleteDisplayMember = "ACCT_DESC";
                            element.AutoCompleteValueMember = "GLMAJOR";
                            break;
                    }
                }
            }
        }

        private void editorElement_PopupOpened(object sender, EventArgs e)
        {
            ((RadDropDownListEditorElement)sender).Popup.MinimumSize = new Size(150, 0);
        }

 


Mimi
Top achievements
Rank 1
 answered on 28 Jan 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
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?