Telerik Forums
UI for WinForms Forum
1 answer
185 views
How do I listen to the click event of the close button on the tab?
Dinko | Tech Support Engineer
Telerik team
 answered on 23 Jun 2023
1 answer
1.1K+ views

Hello,

I'm having trouble installing Telerik UI for Winforms (version 2023.1.314) on Visual Studio 2022 (version 17.0.5).

When I install the extension I get the error in the attached screenshot. I'm able to make the error go away temporarily by deleting the contents of %localappdata%\Microsoft\VisualStudio\17.0_001382ae\ComponentModelCache. But I still get errors when I try to build the solution that already contains Telerik components indicating that I am missing an assembly reference.

Also, many components in the toolbox don't actually get added to the form when I try to drag and drop them in. 

I've tired uninstalling and reinstalling Telerik several times and running the repair function on the Telerik installer.  When available I've tried running the Toolbox Configurator and the Upgrade Wizard but neither have made any difference. Most often the Telerik menu doesn't populate with either  (see menu screenshot attached). 

 

Momchil
Telerik team
 answered on 21 Jun 2023
0 answers
133 views

Dim imageStream As Stream = File.OpenRead(DestPath)
                    Dim radDocument As RadDocument = txtBody.Document

 Dim caretPosition As DocumentPosition = radDocument.CaretPosition

caretPosition.MoveToLastPositionInDocument()

Dim inlineImage As New ImageInline(imageStream)
                    txtBody.InsertInline(inlineImage)

this way the picture shows up in radrichtextbox but after sending the mail it only shows up in my attachments. I also want it to come embedded in the body, that is, in the part where the message is written. What should I do?

Rabia Nur
Top achievements
Rank 1
 asked on 21 Jun 2023
1 answer
162 views

I have a RadTextBox whose MouseDown and MouseMove events do not fire when the mouse is inside the text box.

Running Spyxx reveals that at least the MouseMove event is firing. But both events are being ignored by the RadTextBox control.

Bug? Is this a known issue?

Jay

 

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Jun 2023
1 answer
223 views

Hi,

Is it possible to export to Excel only the selected rows from a gridview using GridViewSpreadExport?

My code looks like this at the moment:

Using ms As New System.IO.MemoryStream

            mspreadExporter = New GridViewSpreadExport(radDocuments) 'radDocuments is the gridview

            Dim exportRenderer As New SpreadExportRenderer()

            mspreadExporter.ExportFormat = SpreadExportFormat.Xlsx
            mspreadExporter.ExportVisualSettings = False
            mspreadExporter.HiddenColumnOption = HiddenOption.DoNotExport
            mspreadExporter.ChildViewExportMode = ChildViewExportMode.ExportCurrentlyActiveView
            mspreadExporter.SheetMaxRows = ExcelMaxRows._1048576
            mspreadExporter.SheetName = "Report"
            mspreadExporter.FileExportMode = FileExportMode.CreateOrOverrideFile
            mspreadExporter.RunExport(ms, exportRenderer)

            Using fileStream As New System.IO.FileStream(strFilename, IO.FileMode.Create, IO.FileAccess.Write)
                ms.WriteTo(fileStream)
            End Using

End Using

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Jun 2023
1 answer
156 views

Hi, good morning.

I am using a Pivotgrid, PivotFieldList and Chartview.

The chartview graphs whatever the Pivotgrid has, but there are times when the Pivotgrid has too many records and the Chartview takes a long time to generate.

As seen in the documentation, a Chartview takes time, because it is recalculating the points to regenerate the graph, after having created it previously.

This has led me to think that if instead of the Chartview graphing the Pivotgrid, it would better graph a DataTable.

My idea is the following:
I already generated a filtered DataTable, the result of the interaction between the Pivotgrid and the PivotFieldList and that DataTable fills the Chartview to generate the graph, I think it would take less time to create the graph, since each time the filtered DataTable would be created.

I was looking at this example that you provide to create a graph from a datatable:
https://www.telerik.com/forums/use-radgridview-as-a-datasource-for-radchartview

But it does not graph as expected, that is, it does not show the graphs the same as when the pivotgrid is filled.

Is it possible to do this, or even if you do, will the graph creation time be the same? Because if so, there is no point in working on this solution.

 

Thank you very much for your attention.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Jun 2023
1 answer
153 views
Is there a way to add a ButtonTextBox to the status or ribbon bars?   I'm trying to create a fast way for users to open a form that requires parameters.   Rather than popping a form just to ask for the parameters, I'm hoping to I could have someplace in a tool bar -- much the way that there is a URL bar on your browser to put your search parameters which it passes to your search engine.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Jun 2023
1 answer
119 views

Hello good afternoon.

I ask for your support, for the following.

In a graph, when there are many elements in X, the labels come together a lot and the text is not understood.

 

When I apply a configuration by code, the graph does look better:

            horizontalAxis.MajorTickInterval = 10;
            horizontalAxis.TickLength = 10;
            horizontalAxis.TickWidth = 10;

 

I would like to start from the number of elements on the X axis that the labels begin to join, to automatically apply the aforementioned code.

My fear is that at some point, it doesn't graph well and it jumps strangely when graphing, could this happen?

Thank you so much
Dinko | Tech Support Engineer
Telerik team
 answered on 19 Jun 2023
1 answer
225 views

Hi,

we have a problem when using the Enter key to select an item in a RadTextBox with Autocompletion because it's triggering the closing of the form, instead of just selected the item.

We have a simple form with a RadTextBox with Autocompletion enabled. In this form, we also have a Button that is used to close the window. This form has the "AcceptButton" property set to this Button. Once we select the RadTextBox and start typing, the autocompletion "dropdown" is shown with the multiple options. We scroll the options with the Arrow keys, and we want to select one element by pressing the Enter key. But, once the Enter key is pressed, the "AcceptButton" is triggered in the form, and the form closes. We only want to select the item with the Enter key without closing the window. Is this possible?

Note: We can't get rid of the "AcceptButton" functionality for the form, since it's a must for all forms in our application.

We attached a sample project with the reproduceable issue.

Please let us know how to achieve this functionality.

Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2023
1 answer
392 views

I have used designer of  Telerik Controls for Winforms at runtime. It was working fine in .Net framework 4.8. After upgrade to .net6.0 I used the Nuget package UI.for.WinForms.AllControls.Net60.Trial.  Telerik.WinControls.UI.Design assembly is missing  in this package. Hence runtime designer feature is not working.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2023
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?