Telerik Forums
UI for WinForms Forum
4 answers
449 views
Hello,


How can I center the title of my RadForm?

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2019
4 answers
310 views
I need to have multiple series in the same charts of different x axis types. I looked through the forum and so far the examples show multiple axis but they are always the same type like a linear series with categorical data points and a datetime continuous x axis. What I need is for one series to be a linear series with a datetime axis and another series to be a scatter line series with it's own x axis that takes proper doubles.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2019
10 answers
432 views

Hi everyone.
I need to draw a circle with the desired radius on the map, which is filled inside the circle with a transparent color and visible inside it. I did this according to the telerik tips, but the circle drawn on the map does not change its radius.
Can anyone help in this matter?
This is also my code:

**************draw circle Class **************

public class DrawCricleOnMap : MapPoint
    {
        private int radiusInMeters;

        public DrawCricleOnMap(PointG location) : base(location)
        { }

        public DrawCricleOnMap(PointG location, Size size)
            : base(location, size)
        { }

        public int RadiusInMeters
        {
            get
            {
                return this.radiusInMeters;
            }
            set
            {
                this.radiusInMeters = value;
            }
        }

        public override void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
        {
            double onePixelInMeters = MapTileSystemHelper.GroundResolution(this.Location.Latitude, viewport.ZoomLevel);

            int scale = -1;
            scale = (int)(this.RadiusInMeters * 2 / onePixelInMeters);
            Size newSize = Size.Empty;
            if (scale > 1)
                newSize = new Size(scale, scale);

            this.Size = newSize;

            base.ViewportChanged(viewport, action);
        }

    }

 

************** use the class in my code by a method ***************

public void DrawCircleOnMap()
        {
            var dbContex = new My_DBEntities();
            var data = dbContex.CarTables.Select(x => new { x.MaxRange, x.CarLat, x.CarLong }).ToList();
            foreach (var item in data)
            {
                DrawCricleOnMap element = new DrawCricleOnMap(new PointG((double)item.CarLat, (double)item.CarLong));
                //element.RadiusInMeters = int.Parse(((double)item.MaxRange).ToString());
                element.RadiusInMeters = 100;
                element.BackColor = Color.FromArgb(125, Color.LightBlue);
                element.BorderColor = Color.Red;
                radMap1.Layers["CircleLayer"].Add(element);
                //DrawCricleOnMap circle = new DrawCricleOnMap(new PointG((double)item.CarLat, (double)item.CarLong))
                //{
                //    RadiusInMeters=int.Parse("200")
                //};
                //radMap1.Layers["CircleLayer"].Add(element);
            }
        }

Lost
Top achievements
Rank 1
 answered on 17 Apr 2019
0 answers
134 views

Hello Everyone,

I am working on a custom user control which has a GridView on it. I have a checkbox column and have the EnableHeaderCheckBox property set to TRUE.  The grid works great; I can click on the Header Checkbox and toggle all checkboxes, etc. However, I am trying to create a method to allow the consumers of this user control to programmatically Select All or Unselect All (basically, mimicking the functionality of the Header Checkbox).

I have tried these but they did not work:

1)

grid.SelectAll();
grid.ClearSelection();

2) 

foreach (var row in grid.Rows)
    row.IsSelected = true;

 

Only this one works, but it takes a little bit of time to select/unselect all rows: 

foreach (var row in grid.Rows)
    row.Cells["Select"].Value = true; //or false to unselect

 

When I click on the Header Checkbox, rows are selected/unselected immediately, which is what I am looking for. I also need to make sure that the grid_CellValueChanged event is fired.

 

Any help is greatly appreciated.

 

Thanks!

 

 

 

 

 

Alex
Top achievements
Rank 1
 asked on 16 Apr 2019
8 answers
3.4K+ views
Is there a way to clear all of the data from the WinForm GridView?  I can rebind to a new empty DataSource, but then there are no column headings.  Ideally I just want to leave the columns as is and just clear the rows underneath.  Is there a way to do this?

Thanks.
Dan
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2019
6 answers
311 views
Hi,

I have some problems using for the first time the RadColorBox. (last release Q1-2012) in vb net
Documentation don't seem be outdated....

So here my problems
I Don't want to display as text of the selected color (I Want only the box filled with the selected color and the [...] Button
I Don't want to show the Web and Basic tabs when the diaglog is showed
(Documentation talk about  ShowBasicColors property, but I don't find it...)


Any help will be great.

Thanks

Anthony
pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 16 Apr 2019
1 answer
209 views

I have a raddock and i add a usercontrol to the raddock DocumentWindow using :
            HostWindow host2 = this.rdkMain.DockControl(estPanel2, winProject, Telerik.WinControls.UI.Docking.DockPosition.Fill,DockType.Document);
The window shows up correctly in the RadDock, however the underlying type is HostWindow (which behaves like a ToolWindow) and not a DocumentWindow. I need a DocumentWindow so that when I Float this window it appears like my other DocumentWindows. See attached images.

TabsDocked image shows the tabs appear correctly when docked, HostWindow is Estimate2, the DocumentWindow is documentWindow1

TabsFloating you can see that the tabstrip displays differently between floating as a HostWindow and a DocumentWindow because the HostWindow is "interpreted" as a ToolWindow. I know there are other differences between ToolWindows and DocumentWindows, so I want to stay with the full DocumentWindow implementation and appearance if at all possible... 

How can i add a usercontrol to the Dock as a DocumentWindow?

Many thanks in advance


Dimitar
Telerik team
 answered on 16 Apr 2019
3 answers
173 views

Hi,

I need to format the text in a GroupElement calculated on a datetime field, removing the time part [I want 10/04/19 instead of 10/04/2019 00:00:00].

I found a suggestion in this forum and wrote this code :

private void rpvtGrid_GroupElementFormatting(object sender, PivotGroupElementEventArgs e) {
    object laCosa = e.GroupElement?.Data?.Group?.Name;
    if (laCosa != null && laCosa is DateTime) {
        DateTime laData = (DateTime)laCosa;
        e.GroupElement.Text = laData.ToString("dd/MM/yy") + " Total";
    }
}

 

The last line of the method assign  the correct value to e.GroupElement.Text but on the inteface nothing changes and I still see the original  text [10/04/2019 00:00:00].

What did i miss ?

[This may be someway related to my previous post.]

 

Hristo
Telerik team
 answered on 16 Apr 2019
6 answers
292 views
I have a form with a Ribbon at the top with dock top to fill the top, a new StatusBar at the bottom with dock bottom to fill the bottom, and in the middle I have a DockManger with dock fill to fill the remaining space.
When I run the form, the Ribbon is at the top like it should be, the StatusBar is at the bottom like it should be. The DockManager is in the middle below the Ribbon, but it appears to extend fully to the bottom of the form with the lower area "hiding" behind the StatusBar.

Paul Clark
Top achievements
Rank 2
 answered on 15 Apr 2019
1 answer
207 views
Hi , how to add Group Record Number(serial no for Group) in Telerik Report Group Section
Neli
Telerik team
 answered on 11 Apr 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
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?