Telerik Forums
UI for WinForms Forum
6 answers
2.0K+ views

Hello When I change the font of a radmaskededitbox, the font family changes correctly, but the size seems to be wrong.

here is how I change the font:

                            Dim meb As RadMaskedEditBox = TryCast(ctrl, RadMaskedEditBox)
                            meb.Font = NewFont
                            meb.Controls(0).Font = NewFont
                            meb.MaskedEditBoxElement.Font = NewFont

Atteched a screen copy where all controls fonts are set to "Comic Sans MS;9pt" and the radeditmaskedboxes show larger fonts

Any suggestion ...

thanks in advance

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 25 Jul 2020
22 answers
1.2K+ views
Hi,
 I would like to add custom values (string) to summary rows, without using aggregation formulas. Is it possible? I want something like the attached image.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jul 2020
9 answers
1.2K+ views
Basically I have a RadTreeView structure with a lot of sub nodes.  I want to bea ble to scroll the treeview when a node is expanded so that the expanded node is the top node.  Ive been trying to use ScrollIntoView without much success.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jul 2020
0 answers
197 views

Hello, 

I am a student from Belgium and I am now using the Telerik DevCraft trail version. because it is convenient and easy to use, I would like to use this for my school projects, here is my question whether it is possible to obtain a student license?

Thank you in advance.

 

Regardes,

Olivier De Neef

Olivier
Top achievements
Rank 1
 asked on 22 Jul 2020
9 answers
228 views

Hello Telerik Support Team,

I have 2 issues with the RadRangeSelector:

1. The Scale doesn't use the format settings of the chart. The category member datatype of the barseries is DateTime and I use this code to set the format:

BarSeries.HorizontalAxis.LabelFormat = "{0:dd.MM}";

In the first screenshot you can see that the rangeselector shows the full DateTime format with hours, minutes and seconds.

 

2. The RangeSelector doesn't respect the minimum and maximum values of the chart. I use this code to set then:

LinearAxis verticalAxis = cvChart.Axes.Get<LinearAxis>(1);
   if (verticalAxis != null)
   {
       verticalAxis.Minimum = 0;
       verticalAxis.Maximum = 100;
       //verticalAxis.MajorStep = 100;
   }

On the second screenshot i marked the behaviour, if the ValueMember for all items in the datasource is 0.

 

Are there possibilities for the RangeSelector to set the formatting options and the minimum and maximum values?

 

Regards,

Stephan

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jul 2020
7 answers
2.2K+ views
Closing the main window will close all child windows(when dragging tabs). How to fix it? To prevent new windows from closing when closing the main window
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Jul 2020
6 answers
471 views
Hi, I'm trying to add magnifier for zooming on main image in my radImageEditor. I already see the magnifier demo but I do not understand how to implement in my radImageEditor. Currently, I'm using mouse wheel zooming.
fazera
Top achievements
Rank 1
 answered on 21 Jul 2020
6 answers
520 views

Is possible to copy cell content from one row to onther new added row in radgridview

winform

Thanks a lot

fabrizio
Top achievements
Rank 2
Iron
Veteran
 answered on 20 Jul 2020
2 answers
140 views

I've been playing with the 2020 R1 demo and am having trouble setting and getting column widths of the VirtualGrid.

To set the column widths I've tried both TableElement, as in the documentation, and MasterViewInfo, which I found in the forums.

A little insight would be great!

 

Thanks!

using System;
using System.Collections.Generic;
using Telerik.WinControls.UI;
 
namespace TelerikWinFormsApp1
{
    public partial class RadForm1 : Telerik.WinControls.UI.RadForm
    {
        List<Foo> data = new List<Foo>();
 
        public RadForm1()
        {
            InitializeComponent();
            this.Text = "Foo";
 
            radVirtualGrid1.AutoSize = false;
            this.radVirtualGrid1.CellValueNeeded += new Telerik.WinControls.UI.VirtualGridCellValueNeededEventHandler(this.radVirtualGrid1_CellValueNeeded);
            this.radVirtualGrid1.ColumnWidthChanged += new Telerik.WinControls.UI.VirtualGridColumnEventHandler(this.radVirtualGrid1_ColumnWidthChanged);
 
            //These methods do not set the column width
            radVirtualGrid1.MasterViewInfo.SetColumnWidth(0, 300);
            radVirtualGrid1.MasterViewInfo.SetColumnWidth(1, 150);
            radVirtualGrid1.TableElement.SetColumnWidth(0, 300);
            radVirtualGrid1.TableElement.SetColumnWidth(1, 150);
 
            LoadData();
        }
 
        private void radVirtualGrid1_ColumnWidthChanged(object sender, VirtualGridColumnEventArgs e)
        {
            //This is always 100
            int i = e.ViewInfo.ColumnWidth;
        }
 
        private void radVirtualGrid1_CellValueNeeded(object sender, Telerik.WinControls.UI.VirtualGridCellValueNeededEventArgs e)
        {
            if (e.ViewInfo == this.radVirtualGrid1.MasterViewInfo)
            {
                if (e.ColumnIndex < 0)
                {
                    return;
                }
 
                e.FieldName = Foo.FieldNames[e.ColumnIndex];
 
                if (e.RowIndex == RadVirtualGrid.HeaderRowIndex)
                {
                    e.Value = e.FieldName;
                }
                else if (e.RowIndex >= 0)
                {
                    e.Value = data[e.RowIndex][e.ColumnIndex];
                }
            }
        }
 
        private void LoadData()
        {
            Random random = new Random();
 
            for (int i = 0; i < 10; i++)
            {
                Foo Foo = new Foo();
                Foo.Me = i;
                Foo.Yu = i;
                data.Add(Foo);
            }
 
            this.radVirtualGrid1.RowCount = data.Count;
            this.radVirtualGrid1.ColumnCount = Foo.FieldNames.Length;
        }
    }
 
    public class Foo
    {
        public static readonly string[] FieldNames = { "Me", "Yu" };
        public int Me { get; set; }
        public int Yu { get; set; }
 
        public int this[int index]
        {
            get
            {
                switch (index)
                {
                    case 0: return Me;
                    case 1: return Yu;
                    default: return 0;
                }
            }
        }
    }
Dave
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 20 Jul 2020
5 answers
136 views
I suggest adding something to the RadTreeView that allows for getting which mouse button is being pressed on individual nodes. Maybe adding Button to the RadTreeViewEventArgs that returns a MouseButtons value.

For what I'm doing it won't make a huge difference, but it would help to know in certain circumstances.
Nadya | Tech Support Engineer
Telerik team
 answered on 20 Jul 2020
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
CollapsiblePanel
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?