Telerik Forums
UI for WinForms Forum
1 answer
170 views
I am working on a project with "UI for WinForms R2 2022 SP1 (version 2022.2.622)" and I am facing an issue on all my RadLebels!!! If I use HTML-Like text they look like this...



Any idea why is this happening?

Thank you for your time!!!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Sep 2022
1 answer
212 views

Hi,

Let me describe my use case in these following steps:

  • created a RadRichTextEditor 
  • set the RadRichTextEditor text to "This is a sample"
  • set the cursor before the letter "s" from the word "sample"
  • created a readonly span and set the fore color to Yellow
  • inserted the readonly span "Inserted text" before the word "sample"

Please see the output from the attachment: InsertTextOnCurrentCaretPosition_UI_1.0.PNG

Code below, is the method of insertion of readonly span

public void InsertTextOnCurrentCaretPosition()
{
	// Creating and setting span
	Span readOnlyContent = new Span("Inserted text");
	readOnlyContent.ForeColor = Color.FromRgb(255, 255, 0);     // Yellow

	// Get the position of the current caret
	DocumentPosition caretPosition = new DocumentPosition(radRichTextEditor.Document.CaretPosition);
	caretPosition.AnchorToCurrentBoxIndex();

	// Insert the span
	radRichTextEditor.Document.Selection.Clear();
	radRichTextEditor.InsertInline(readOnlyContent);

	// Get the position of the current caret after inserting the span
	caretPosition.RestorePositionFromBoxIndex();
	DocumentPosition endCitation = radRichTextEditor.Document.CaretPosition;

	// Select the span by caret positions and insert as read only
	radRichTextEditor.Document.Selection.AddSelectionStart(caretPosition);
	radRichTextEditor.Document.Selection.AddSelectionEnd(endCitation);
	radRichTextEditor.InsertReadOnlyRange();

	radRichTextEditor.Focus();
}


After the insertion of the readonly span, I key-in 3 letter "a" and expected the fore color would be Black, but it seems it retained the color (Yellow) of the readonly span. As you can see on this attachment: InsertTextOnCurrentCaretPosition_UI_1.1.PNG

Is there a way to set/reset the fore color to Black after the readonly span? so that the key-in values would be in color Black

Code below, I tried setting the fore color to Black right after the InsertReadOnlyRange, but it changes the fore color of the 2nd word "text" of the readonly span as you can see on this attachment: InsertTextOnCurrentCaretPosition_UI_2.0.PNG

public void InsertTextOnCurrentCaretPosition()
{
	// Creating and setting span
	Span readOnlyContent = new Span("Inserted text");
	readOnlyContent.ForeColor = Color.FromRgb(255, 255, 0);     // Yellow

	// Get the position of the current caret
	DocumentPosition caretPosition = new DocumentPosition(radRichTextEditor.Document.CaretPosition);
	caretPosition.AnchorToCurrentBoxIndex();

	// Insert the span
	radRichTextEditor.Document.Selection.Clear();
	radRichTextEditor.InsertInline(readOnlyContent);

	// Get the position of the current caret after inserting the span
	caretPosition.RestorePositionFromBoxIndex();
	DocumentPosition endCitation = radRichTextEditor.Document.CaretPosition;

	// Select the span by caret positions and insert as read only
	radRichTextEditor.Document.Selection.AddSelectionStart(caretPosition);
	radRichTextEditor.Document.Selection.AddSelectionEnd(endCitation);
	radRichTextEditor.InsertReadOnlyRange();

	// Change the color of the editor back to black
	radRichTextEditor.Document.Selection.Clear();
	radRichTextEditor.ChangeTextForeColor(Color.FromRgb(0, 0, 0));   // Black
	radRichTextEditor.DocumentInheritsDefaultStyleSettings = true;
	radRichTextEditor.Focus();
}

Dimitar
Telerik team
 answered on 22 Sep 2022
1 answer
179 views

Hi 

I would like to create charts programmatically  and display them in a table of two columns (like the attached photo) and and be able to drag and drop the displayed charts to change their locations. Is there a way to do this using the UI components for WinForms?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Sep 2022
2 answers
251 views
  • Visual Studio 2019
  • From the Bin folder of the applications, my current installed Telerik version is 2022.2.510.40
  • Applications written in C# and another VB.Net
  • I've updated each and every Telerik products from the Control Panel
  • When solution is loaded, I receive the flying windows saying that an update is available, proposing to "UPDATE NOW" or "DISMISS"
  • If I choose "UPDATE NOW", the wizard starts
  • The wizard completes in a fraction of a second, resulting in:

This happens for all my WinForms applications.

Any idea?

Thank you all!

Philippe

Petia
Telerik team
 answered on 22 Sep 2022
1 answer
171 views

Hello,

I am using the DataEntry component along with the DisplayName attribut.

However, at run time, I don't a way to fetch the original name (from the model class) as the Text field contains substitute the DisplayName to the original one.

Apparently the control Name field is always empty. Couldn't you use it to store the control name ?

Regards

Patrick

 

 


Dinko | Tech Support Engineer
Telerik team
 answered on 21 Sep 2022
1 answer
134 views

Hi,

What tagger would be best to identify elements contained in double-curly-braces?  Change the forecolor of the curly braces to yellow and the word or syntax between them to orange?  Also is there a way to iterate through all elements that were tagged?

Thanks

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2022
2 answers
137 views

Hello,

  • Visual Studio 2019
  • Telerik version: 2022.2.510.40

When I open a form with Telerik component on it, it is not possible to select it anymore.

No problem with "standard" controls. Only Telerik controls are causing this issue. I have a RadGridView and a RadColorBox.

Any idea?

Thank you!

Philippe

Maria
Telerik team
 answered on 21 Sep 2022
1 answer
149 views

Creating a RadChartView, both with a single series and multiple series for a DateTimeCategorical axis.  Some series have gaps (null values). I'd like the series to close up this gap in the line, connecting the two data points. I cannot find an option to do so. See the datagap.png and datagap2.png attachments for an example.

Some workarounds I've tried is to not add a data point at all for that date when the value is null, but then then that date doesn't show up in the category. See datagap3.png for an example.

Is there a setting to close this gap in the line, or am I using the wrong chart or series type?

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2022
1 answer
144 views

After installing the new WinForms update. I load my project but the RadForm opened with an error. The captured error is attached.

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Sep 2022
1 answer
140 views

We are testing a chart filled in the winforms dock, after add lineSeries to the chart, chart shrink. We are added chart.SetRadAutoScale(true),  chart.Refresh(),   chart.Area.Refresh(), chart.View.Refresh() nothing change.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Sep 2022
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
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?