
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.GlobalizationImports System.MathImports System.Drawing.Drawing2DImports System.Drawing.ColorImports Telerik.WindowsImports Telerik.Windows.Diagrams.CoreImports Telerik.WinControls.UIImports Telerik.WinControls.UI.DiagramsPublic 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 SubEnd ClassPublic 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 SubEnd ClassGreetings,
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.

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
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?
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


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

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 Taggers03.LuaTagger^ luaTagger = gcnew LuaTagger(newEditor->SyntaxEditorElement);04.newEditor->TaggersRegistry->RegisterTagger(luaTagger);05.//Set the Syntax Colors06.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::Keyword, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 216, 160, 223)))); // Keywords07.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::Comment, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 87, 166, 74)))); // Comments08.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::NumberLiteral, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 181, 206, 168)))); //Numbers09.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::StringLiteral, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 214, 157, 133)))); // String10.newEditor->TextFormatDefinitions->AddLast(ClassificationTypes::Operator, gcnew Telerik::WinForms::Controls::SyntaxEditor::UI::TextFormatDefinition(gcnew SolidBrush(Color::FromArgb(255, 180, 180 ,180)))); // Operators11.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!
