Telerik Forums
UI for WinForms Forum
8 answers
394 views

Dear all,  

Can we formated textboxcolumn in grid with this format ? "XXXX-XX.XX" without maskededitboxcolumn ? 

Thanks Before 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Nov 2020
3 answers
60 views

Just upgraded to R3 and running program I am having the following error:

SearchRowPosition Failed

Telerik.WinControls.UI.SystemRowPosition is not available in the target framework.  Using framework 4.7.2, which is the same I was using in the previous release. 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Nov 2020
1 answer
1.6K+ views

We have been slowly moving away from an antiquated system, "Unidata". We have just completed converting the entire ERP system to Winforms with Visual Basic (interface only. it still is pulling data from Unidata). Next year, we will begin converting from Unidata database to MS SQL. In the future, we will move to C#. I proposed to my team to NOT wait, but to use C# when we convert to MS SQL (at the very least all db calls should be in C#). 

We are using VS 2015, .Net 4.7.2, and Telerik WinForms 2019.1.117.40

Before we start the conversion, I would like to move to VS 2019, .Net 5, and the latest Telerik WinForms version 

Here is my question: 

Is there a recommended conversion tool when moving from Visual Basic to C# that works best for Telerik Winforms?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Nov 2020
1 answer
271 views

Hi,

 

In some rows of the grid I need the CHECKBOX to be visible and enabled. How do I do that?

I attach an image.

 

Best regards.

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Nov 2020
3 answers
892 views
Dear sir/madam,

I am using Telerik Gridview in Winforms. Data is bound to the grid.
I tried to use the CellFormatting event to change the text (that is the visual part) of a particular cell, but it does not work. Changing the value of the cell does work, but that is not wanted.
What I try to achieve is to add some extra text at the end of the text in the cell and add an icon (image) in the cell, without changing the value of the databound item.

Any help is appreciated.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Nov 2020
1 answer
75 views

Hello Telerik staff,

First of all, allow me to thank you for all the help your team has provided me. After implementing custom shapes in my RadDiagram, I discovered that I require to create a connection that allows me to link other connections to it (please, see attached image). I have perused the forum and the documentation, but I have not found any clue that could lead me to a solution.

Thank you very much.

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Nov 2020
1 answer
101 views

Dear Telerik staff,

I am trying to insert a customized connection using the default ConnectorTool into my RadDiagram. However, this seems near impossible because the library does not expose a method to do that, as WPF does (https://www.telerik.com/forums/using-connection-tool-to-draw-custom-connection). Consequently, I decided to create a custom tool, but it is not working. I need a tool that provides the same functionality as the ConnectorTool, but that employs a customized connection that contains its own visual traits and a set of extra properties/variables.
My current code is as follows:

public class CustomTool : ToolBase, IMouseListener
    {
        public CustomTool(string name) : base(name)
        {
            this.Name = name;
        }
        IConnection currentConnection = null;
        Point lastPoint;
        public virtual bool MouseDown(PointerArgs e)
        {
            try
            {
                if (this.ToolService.ActiveTool != null && this.ToolService.ActiveTool.Name.Equals(this.Name))
                {
                     
                    HitTestService hitTestService = MainMenu.getDiagram().ServiceLocator.GetService<IHitTestService>() as HitTestService;
                    
                    if (this.currentConnection == null)
                    {
                        this.currentConnection = new CustomRadDiagramConnection(System.Drawing.Color.FromArgb(150, 45, 90), "test");
                         
                        if (hitTestService.ShapeUnderMouse != null)
                        {
                            this.currentConnection.Source = hitTestService.ShapeUnderMouse; 
                        }
                        this.currentConnection.StartPoint = e.TransformedPoint;
                         
                        this.currentConnection.EndPoint = this.lastPoint = e.TransformedPoint;
                        this.Graph.Items.Add((RadElement)this.currentConnection);
                        hitTestService = null;
                        return true;
                    }
                }
            }
            catch (NullReferenceException)
            {
                MessageBox.Show("Not working");
            }
            return true;
        }
 
        protected override void OnActivated()
        {
            base.OnActivated();
            this.lastPoint = new Point(0, 0);
            this.currentConnection = null;
        }
 
        protected override void OnDeactivated()
        {
            base.OnDeactivated();
            this.ToolService.ActivateTool("Pointer Tool");
            this.Graph.AddConnection(currentConnection);
            //this.Graph.Items.Remove((RadElement)this.currentConnection);
            this.currentConnection = null;
        }
 
        public virtual bool MouseMove(PointerArgs e)
        {
 
            if (this.currentConnection != null && this.IsActive)
            {
                this.currentConnection.EndPoint = this.lastPoint = e.TransformedPoint;
                this.currentConnection.Update();
                return true;
            }
            return false;
        }
        public virtual bool MouseUp(PointerArgs e)
        {
            HitTestService hitTestService = MainMenu.getDiagram().ServiceLocator.GetService<IHitTestService>() as HitTestService;
            if (IsActive)
            {
                if (hitTestService.ShapeUnderMouse != null)
                {
                    this.currentConnection.Target = hitTestService.ShapeUnderMouse;
                }
                this.currentConnection.EndPoint = this.lastPoint;
                this.currentConnection.Update();
                this.DeactivateTool();
                hitTestService = null;
                return true;
            }
            return false;
        }
        public bool MouseDoubleClick(PointerArgs e)
        {
            return false;
        }
    }

 

Thank you

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Nov 2020
4 answers
87 views

I am planning to include two types of radDiagramContainerShape in my project:

1) The first one holds all the shapes that will be created and inserted into the Diagram; hence, it must fill the whole area of the diagram. In other words, it should behave as if it were docked to its parent (radDiagram) in dock.fill mode.
2) The second one will be created each time a "special" shape is instantiated. Then, that shape will be added and locked to it. This container should behave normally with any other shape, but the special one. The special shape must remain fixed to the container.

I have been reviewing the accessible properties and events, but I have not found a way of achieving it yet.

Thank you for your help!

 

Tom
Top achievements
Rank 1
Veteran
 answered on 11 Nov 2020
1 answer
122 views
How can i add Toogle Button Element in design form?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Nov 2020
4 answers
351 views

Hi, How can I disable grid scrolling associated with a panning gesture? I would like it just to work when using the grid's scrollbar. So, while a user is panning, e.g. panning vertically up, I do not want the grid to scroll.

Thanks!

Alan
Top achievements
Rank 1
 answered on 10 Nov 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
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?