Telerik Forums
UI for WinForms Forum
3 answers
428 views
Hi,

Is there a way to hide the Expand/Collapse button and the recover the space it takes? I would be replacing its functionality with code that expands and collapses the panel, i.e. no need for the button..

Thank you
Ali
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2020
2 answers
154 views
How can you set so that the text is not lit when the control receives the focus?
Eusebio
Top achievements
Rank 1
Veteran
 answered on 16 Dec 2020
2 answers
294 views

Hi,

Am trying to do the simplest of things in winforms/vb using the RadDiagram .. 

My use case is simply changing the color of a shape when the mouse enters it and back again when it leaves it. 

I have been experimenting with the events and their behaviors and cannot explain/figure out the following :

- mouse leave event fires correctly on the boundary of the shape (works as expected)

- mouse enter event fires only when the shape is selected and when touching the connector borders (the four default ones - up/down/left/right). the mouse changes to resize cursor when touching the four corner connectors

Below is my simple test code - 

Imports System.Globalization
Imports System.Math
Imports System.Drawing.Drawing2D
Imports System.Drawing.Color
Imports Telerik.Windows
Imports Telerik.Windows.Diagrams.Core
Imports Telerik.WinControls.UI
Imports Telerik.WinControls.UI.Diagrams
 
Public Class RadForm1
    Public Sub New()
 
        ' This call is required by the designer.
        InitializeComponent()
 
        ' Add any initialization after the InitializeComponent() call.
 
    End Sub
 
    Private Sub NewItemToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles NewItemToolStripMenuItem.Click
        Dim shape As LayoutShape = New LayoutShape()
        RadDiagram1.AddShape(shape)
    End Sub
 
 
    Private Sub RadDiagram1_ShapeClicked(sender As Object, e As ShapeRoutedEventArgs) Handles RadDiagram1.ShapeClicked
        Dim shape As LayoutShape = TryCast(e.Shape, LayoutShape)
 
        If (shape IsNot Nothing) Then
            shape.BackColor = Green ' reset
        End If
    End Sub
 
 
End Class
 
Public Class LayoutShape
    Inherits RadDiagramShape
 
    Public Sub New()
        IsEditable = False
        Shape = New Telerik.WinControls.RoundRectShape(5)
        AutoSize = False
        BorderBrush = New System.Drawing.SolidBrush(System.Drawing.Color.Red)
        ShouldHandleMouseInput = True
        SetBounds(0, 0, 100, 25)
        BackColor = Green
        Position = New Point(100, 100)
        IsEditable = False
        AutoToolTip = False
        NotifyParentOnMouseInput = True
 
    End Sub
 
 
    Public Sub LayoutShape_MouseLeave(sender As Object, e As EventArgs) Handles Me.MouseLeave
        Dim shape As LayoutShape = TryCast(sender, LayoutShape)
 
        shape.BackColor = Blue
    End Sub
 
    Private Sub LayoutShape_MouseEnter(sender As Object, e As EventArgs) Handles Me.MouseEnter
        Dim shape As LayoutShape = TryCast(sender, LayoutShape)
 
        shape.BackColor = Yellow
    End Sub
 
End Class
Milan
Top achievements
Rank 1
 answered on 15 Dec 2020
1 answer
212 views

Greetings,

Is it possible to customize RadPrintSettingsDialog's ToolCommandBar items programmatically ? For instance, hiding Print Settings button, or just showing Print button and ...  (before runtime) ?

I have the same question with Print Settings Dialog. How to customize the Print Settings Dialog items in aspect of setting visibility of items ?

 

Thanks in advance.


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2020
2 answers
291 views

Hi,

I have a GridView with Row details as from https://www.telerik.com/support/code-library/row-details-grid-for-q3-extended

Is it possible to make button of GridViewCommandColumn with height of row+details? See attachment. 

I have tried to add new RadButtonElement in CellFormatting event, but still it has height of the row...

If no - perhaps it is possible to add button to row details? Idea is to make bigger button

Thanks

Alex

 

Alex Dybenko
Top achievements
Rank 2
 answered on 11 Dec 2020
2 answers
142 views

Hello,

I have a custom Editor derived from BaseInputEditor based on a RadButtonTextBoxElement.

In the "EndEdit()" function I change another property of the selected object, how can I see if the user canceled the edit by pressing ESC, so I can prevent the change of the other property?

gipsy
Top achievements
Rank 1
 answered on 10 Dec 2020
1 answer
399 views

 

I am using the new Arrow shape in the ImageEditor.

My users are complaining that when they draw an arrow that have to 1st select the arrow shape and then change the thickness.

They adding the arrows to many images (pictures).
Can I create a new item (draw arrow), under 'Draw Shape' on left that will open the draw shape toolbox when the arrow shape pre selected and the thickness set to the last thickness used?

-George

Nadya | Tech Support Engineer
Telerik team
 answered on 08 Dec 2020
1 answer
165 views
If I have quick access items listed on the Windows File Explorer, is there any way to get them to show up on RadOpenFolderDialog?
Nadya | Tech Support Engineer
Telerik team
 answered on 08 Dec 2020
4 answers
147 views

i have radgridview that contains 2 text columns and the third is an imagecolumn 

 

i need to insert the data in the gridview into sql server table including the image in column3

 

how to do that please

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Dec 2020
9 answers
705 views

Hello, I am in the process of settings up a custom Language Tagger for Lua. Following the example provided in the documentation (https://docs.telerik.com/devtools/winforms/controls/syntax-editor/features/taggers/custom-language). Everything seems to be working correctly, however I am having a slight problem with setting a String Literal. A numerical Literal example is provided by overriding the TryGetClassificationType function, however in attempting to do a similar approach for Strings does not give the correct result.

The " characters are colored correctly but the words between the " " characters remain uncolored.

Here is my TryGetClassificationType function (Note I am using Telerik Winforms in C++ but the C# code is very similar) :

01.bool TryGetClassificationType(String^ word, ClassificationType^ %classificationType) override {
02.    int number;
03.    if (int::TryParse(word, number)) {
04.        classificationType = ClassificationTypes::NumberLiteral;
05.        return true;
06.    }
07. 
08.    if (word->Contains("\"")) {
09.        classificationType = ClassificationTypes::StringLiteral;
10.        return true;
11.    }
12. 
13.    if (word->Contains("\'")) {
14.        classificationType = ClassificationTypes::StringLiteral;
15.        return true;
16.    }
17. 
18.    return WordTaggerBase::TryGetClassificationType(word, classificationType);
19.};

 

And my tagger registration as follows:

01.RadSyntaxEditor^ newEditor = gcnew RadSyntaxEditor();
02.//Register the Syntax Highlighting Taggers
03.LuaTagger^ luaTagger = gcnew LuaTagger(newEditor->SyntaxEditorElement);
04.newEditor->TaggersRegistry->RegisterTagger(luaTagger);
05.//Set the Syntax Colors
06.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::Keyword, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 216, 160, 223)))); // Keywords
07.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::Comment, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 87, 166, 74)))); // Comments
08.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::NumberLiteral, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 181, 206, 168)))); //Numbers
09.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::StringLiteral, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 214, 157, 133)))); // String
10.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::Operator, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 180, 180 ,180)))); // Operators
11.newEditor->TextFormatDefinitions->AddLast(LuaTagger::ObjectsClassificationType, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 78, 201, 176)))); // Objects

 

 

This yields the following result: https://gyazo.com/6331b12a57135c478bd3dccf66037fe8

As you can see, the " symbols are being correctly colored but the text in between is not. How would I get the text inbetween the two " " to be registered as a String Literal?

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Dec 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
Styling
Barcode
PopupEditor
RibbonForm
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?