Telerik Forums
UI for WinForms Forum
1 answer
181 views

HI

I have met a problem about WinForm ActiveControl in Telerik Control - RadDock.

Reintroduce steps :

1.Place TextBox1, TextBox2 on Form.
2a.Place a RadDock on Form.
2b.RadDock task - Dock New Window to Left - toolWindow1
2c.RadDock task - Add Tabbed Document - documentWindow1
3a.Place TextBox3 on toolWindow1.
3b.Place TextBox4 on documentWindow1.

Run the application and test the ActiveControl state (focus the control by control),
ActiveControl of TextBox1 and TextBox2 is CORRECT,
but ActiveControl of TextBox3 and TextBox4 was WRONG.
(see attachment - Telerik ActiveControl err1.png).

Why the ActiveControl are not TextBox3/TextBox4 ? 
And Is there have any solution to fix that ?

Code :


    private void Timer1_Tick(object sender, EventArgs e)
    {
      Control CurrentActiveControl = ActiveControl;
      string sActiveControlName, sActiveControlString;
      //
      sActiveControlName = (CurrentActiveControl != null) ? CurrentActiveControl.Name : "(unknown)";
      sActiveControlString = (CurrentActiveControl != null) ? CurrentActiveControl.ToString() : "(none)";
      //
      listBox1.Items.Insert(0, DateTime.Now.ToString("hh:mm:ss - ") + sActiveControlName + ", " + sActiveControlString);
    }

*Visual Studio 2015 Enterprise Update 3
*Telerik UI for WinForms R1 2018

Best regards

Chris

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Dec 2018
3 answers
171 views

I'm not sure the exact approach, but I'm looking to design a calendar where it imports multiple iCal files and displays schedule in a single calendar.  Each ics file would represent a different entity, and I would want to use custom colors to block events for each.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Dec 2018
1 answer
412 views
I'm a L4G Progress developper and I just use TELERIK Objets in my programs like the RadGridview.
And I can't format my decimal columns in a RadGridView.
Decimalplaces propriety has no effect and all tested values like "{0:C}" or "{###.##}" for the formatstring propriety are not allowed.
May be I miss some classes which allows these values ????
I'm sorry but I'm a beginner with .Net developpement.

Thanks a lot for your answers.

JP CLARY

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Dec 2018
4 answers
291 views

     The RadTextBoxControl has a "ShowClearButton" property where is True, at the far right end there'll be an "X" button inside the textbox to clear the text.

If the textbox's Click event is hooked to a function and the user clicks on the "X" button, then the "X" will do nothing and the Click event is triggered.

 

I believe that when ShowClearButton is True, that portion of the textbox which contains the "X" button should not trigger the Click or DoubleClick events of the textbox.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Dec 2018
1 answer
539 views
I want to create an orgchart (WinForms) as it is in the following photo. How can I do it using the raddiagram? Help please!!!!!!!!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Dec 2018
1 answer
223 views

hi.

how can i do to insert the title of  Series  on top of line in ScatterLineSeries.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Dec 2018
7 answers
228 views

Hello,

I'm testing RadPanorama for Windows Forms

I love the zooming feature (although having the ability to set an initial zoom value depending on the screen resolution would make it better), however I can't find how to make the tile text bigger.

When I go to the tile's properties, then font and make the font bigger, it automatically changes back to 'Segoe UI Light, 16pt'.
I then tried doing the same on the TileGroupElement itself, but its font always automatically becomes 'Segoe UI Light, 20.25pt' 

I finally tried to change the font of the RadPanorama as a whole, and although the value does change, it doesn't have any effect on the tiles.

 

So how do I go about doing that? Thank you in advance :)

Ioannis
Top achievements
Rank 2
 answered on 27 Dec 2018
4 answers
355 views

Hello,

 

So I have a form with a RadDock control which has a DocumentContainer which has a DocumentTabStrip on which I had created 4 DocumentsWindows

I wanted to do is so that the Main DocumentWindow (dwApplications) will have buttons that will make the other 3 DocumentWindows appear.

 

Now on the Form Designer I right-clicked and pushed "Close" on the 3 other DocumentWindows that I wanted to make them appear only if a button was pushed.
However, I fail to bring them back either on the Designer or in runtime.
On the designer I just can't see to find those document windows, not in the usual form designer nor in the Advanced Layout Designer

As for runtime, I thought that this would make them appear, but it actually doesn't

dwLoadEmployees.Show()
dwLoadEmployees.Select()

 

What can I do?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Dec 2018
3 answers
228 views

Hello.
I have a problem with the size of DropDown on high DPI. Long story short - it completely ignore DefaultItemsCountInDropDown and MaxDropDownItems.

Some DDL in our projects has fixed amount of items, and we set DefaultItemsCountInDropDown to fixed value, to avoid scrolls and empty space when possible.

And it works fine on 100% DPI. But when I change DPI settings in the system the pop-up height is greater than it should be and have empty space if DDL has less then 6 items. And It will show scrollbar if it has more then 6 items.

I believe that only DropDownHeight is used for scaling. By default, DefaultItemsCountInDropDown = 6 and DropDownHeight = 106, and on HDPI It looks like the program ignores DefaultItemsCountInDropDown and always uses DropDownHeight, which was automatically scaled for current dpi. To confirm my assumption, you can manually set DropDownHeight = 200 (for example) and the result will be the same on any DPI.

Below I gave examples of my code and screenshots from different DPI. 
100% https://clip2net.com/s/3YIB3Cn
200% https://clip2net.com/s/3YIBamA

 

using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Telerik.WinControls;
using Telerik.WinControls.UI;
 
namespace PP.DesignExamples.BugsForTelerik
{
    public class Form4 : RadForm
    {
        private RadDropDownList radDropDownList1;
        private RadDropDownList radDropDownList2;
 
        public Form4()
        {
            InitializeComponent();
        }
 
        private void InitializeComponent()
        {
            RadListDataItem radListDataItem1 = new RadListDataItem();
            RadListDataItem radListDataItem2 = new RadListDataItem();
            RadListDataItem radListDataItem3 = new RadListDataItem();
            RadListDataItem radListDataItem4 = new RadListDataItem();
            RadListDataItem radListDataItem5 = new RadListDataItem();
            RadListDataItem radListDataItem6 = new RadListDataItem();
            RadListDataItem radListDataItem7 = new RadListDataItem();
            RadListDataItem radListDataItem8 = new RadListDataItem();
            RadListDataItem radListDataItem9 = new RadListDataItem();
            RadListDataItem radListDataItem10 = new RadListDataItem();
            RadListDataItem radListDataItem11 = new RadListDataItem();
            RadListDataItem radListDataItem12 = new RadListDataItem();
            RadListDataItem radListDataItem13 = new RadListDataItem();
            radDropDownList1 = new RadDropDownList();
            radDropDownList2 = new RadDropDownList();
            ((ISupportInitialize)(radDropDownList1)).BeginInit();
            ((ISupportInitialize)(radDropDownList2)).BeginInit();
            ((ISupportInitialize)(this)).BeginInit();
            SuspendLayout();
            //
            // radDropDownList1
            //
            radDropDownList1.DefaultItemsCountInDropDown = 10;
            radDropDownList1.DropDownStyle = RadDropDownStyle.DropDownList;
            radListDataItem1.Text = "ListItem 1";
            radListDataItem2.Text = "ListItem 2";
            radListDataItem3.Text = "ListItem 3";
            radListDataItem4.Text = "ListItem 4";
            radListDataItem5.Text = "ListItem 5";
            radListDataItem6.Text = "ListItem 6";
            radListDataItem7.Text = "ListItem 7";
            radListDataItem8.Text = "ListItem 8";
            radListDataItem9.Text = "ListItem 9";
            radListDataItem10.Text = "ListItem 10";
            radDropDownList1.Items.Add(radListDataItem1);
            radDropDownList1.Items.Add(radListDataItem2);
            radDropDownList1.Items.Add(radListDataItem3);
            radDropDownList1.Items.Add(radListDataItem4);
            radDropDownList1.Items.Add(radListDataItem5);
            radDropDownList1.Items.Add(radListDataItem6);
            radDropDownList1.Items.Add(radListDataItem7);
            radDropDownList1.Items.Add(radListDataItem8);
            radDropDownList1.Items.Add(radListDataItem9);
            radDropDownList1.Items.Add(radListDataItem10);
            radDropDownList1.Location = new Point(12, 12);
            radDropDownList1.MaxDropDownItems = 10;
            radDropDownList1.Name = "radDropDownList1";
            radDropDownList1.Size = new Size(159, 20);
            radDropDownList1.TabIndex = 0;
            //
            // radDropDownList2
            //
            radDropDownList2.DefaultItemsCountInDropDown = 3;
            radDropDownList2.DropDownStyle = RadDropDownStyle.DropDownList;
            radListDataItem11.Text = "ListItem 1";
            radListDataItem12.Text = "ListItem 2";
            radListDataItem13.Text = "ListItem 3";
            radDropDownList2.Items.Add(radListDataItem11);
            radDropDownList2.Items.Add(radListDataItem12);
            radDropDownList2.Items.Add(radListDataItem13);
            radDropDownList2.Location = new Point(12, 42);
            radDropDownList2.MaxDropDownItems = 3;
            radDropDownList2.Name = "radDropDownList2";
            radDropDownList2.Size = new Size(159, 20);
            radDropDownList2.TabIndex = 0;
            //
            // Form4
            //
            AutoScaleDimensions = new SizeF(6F, 13F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(487, 77);
            Controls.Add(radDropDownList1);
            Controls.Add(radDropDownList2);
            Name = "Form4";
            //
            //
            //
            RootElement.ApplyShapeToControl = true;
            Text = "Form4";
            ((ISupportInitialize)(radDropDownList1)).EndInit();
            ((ISupportInitialize)(radDropDownList2)).EndInit();
            ((ISupportInitialize)(this)).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
    }
}

I use Telerik 2018.3.1016.20 with .Net 3.5 
I very much rely on your help and advice.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Dec 2018
2 answers
119 views

I tried the sample from this link: https://docs.telerik.com/devtools/winforms/knowledge-base/map-point-with-radius, but the mappoint doesn't resize on the map. I've checked the size property and it definitely changed but it seems that it is not reflecting on the map. Other properties like bordercolor or backcolor is working fine. What could be the problem? Thanks

Grey
Top achievements
Rank 1
 answered on 26 Dec 2018
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?