Telerik Forums
UI for WinForms Forum
1 answer
125 views
In the 'RadCheckedDropDownList' control, when the AutoCompleteMode is set as SuggestAppend, it opens a dropdown with suggestions based on what was typed. Is there a way for me to make this suggestion dropdown not open and have the text appear in the normal dropdown instead? I don't find it very appealing to open two dropdowns when I could just use one. I didn't find any option to remove this suggestion dropdown.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jun 2023
3 answers
101 views

Hello Support-Team,

I'm using a RadScheduler with a custom ElementProvider. I need some Help with the Elements. I wanted the name element on top and a info box right below using the rest of the free space. I made a screenshot and here is my code for the CustomElements:

 

class CustomSchedulerResourceHeaderCellElement : SchedulerResourceHeaderCellElement
{

        private readonly StackLayoutElement _container = new StackLayoutElement();
        private readonly StackLayoutElement _subContainer = new StackLayoutElement();
        private readonly LightVisualElement _nameElement = new LightVisualElement();
        private readonly LightVisualElement _infoElement = new LightVisualElement();

        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            _container.StretchHorizontally = true;
            _container.StretchVertically = true;
            _container.Orientation = Orientation.Vertical;
            _container.Alignment = ContentAlignment.TopCenter;
            _container.Padding = new Padding(3);
            _container.Children.Add(_nameElement);

            _nameElement.StretchHorizontally = true;
            _nameElement.DrawImage = true;
            _nameElement.ImageLayout = ImageLayout.None;
            _nameElement.TextWrap = true;
            _nameElement.TextAlignment = ContentAlignment.TopLeft;
            _nameElement.ImageAlignment = ContentAlignment.TopLeft;
            _nameElement.TextImageRelation = TextImageRelation.ImageBeforeText;

            _container.Children.Add(_subContainer);
            _subContainer.StretchHorizontally = true;
            _subContainer.StretchVertically = true;
            _subContainer.Orientation = Orientation.Vertical;
            _subContainer.Alignment = ContentAlignment.TopCenter;
            _subContainer.Children.Add(_infoElement);

            _infoElement.StretchHorizontally = true;
            _infoElement.StretchVertically = true;
            _infoElement.TextWrap = true;
            _infoElement.TextAlignment = ContentAlignment.TopLeft;

            _infoElement.BackColor = Color.FromArgb(128, Color.LightGray);
            _infoElement.NumberOfColors = 1;
            _infoElement.DrawFill = true;
            _infoElement.Font = new Font(this.Font, FontStyle.Regular);

            this.Children.Add(_container);
            this.DrawImage = false;
            this.DrawText = false;
        }

        public override string Text
        {
            get
            {
                InitElements();
                return base.Text;
            }
            set
            {
                base.Text = value;
            }
        }

/* Some more methods for setting the text elements and the image*/
}

 

I started with only one container, but adding a subcontainer didn't do the trick. Hope you can provide me a solution.

Regards,

Stephan

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Jun 2023
1 answer
129 views

I Have One GridViewTextBox Column in a grid and One ComboBox Column based on selection in a combobox column I need cells of TextBox Column to contain either string or integer value how I can do this please help me.

already used below mentioned code but having issue with that I cannot able to put values more than 100 in that and getting up/down arrows to increases and decrease values but I dont need them.

 radGridView1.EditorRequired += new Telerik.WinControls.UI.EditorRequiredEventHandler(radGridView1_EditorRequired);  // binding event on grid

void radGridView1_EditorRequired(object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e)
        {
            if (this.radGridView1.Columns[1].IsCurrent)
            {
                var a = TextCodes.SingleOrDefault(t => t.Name.Equals(this.radGridView1.CurrentRow.Cells[0].Value));
                if (a == null)
                    return;
                if (a.TextCodeType == TextCodeTypeEnum._datetime)
                {
                    e.Editor = new RadDateTimeEditor();
                    e.EditorType = typeof(RadDateTimeEditor);
                }
                else if (a.TextCodeType == TextCodeTypeEnum._string && a.TextCodeValueList == null)
                {
                    e.Editor = new RadTextBoxEditor();
                    e.EditorType = typeof(RadTextBoxEditor);
                }
                else if (a.TextCodeType == TextCodeTypeEnum._string && a.TextCodeValueList != null)
                {
                    e.Editor = new RadDropDownListEditor();
                    try
                    {
                        ((RadDropDownListEditor)e.Editor).DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
                    }
                    catch (System.Exception)
                    {
                    }
                    e.EditorType = typeof(RadDropDownListEditor);
                }
                else if (a.TextCodeType == TextCodeTypeEnum._number)
                {
                    e.Editor = new GridSpinEditor();
                    e.EditorType = typeof(GridSpinEditor);
                }
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Jun 2023
1 answer
165 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.0K+ 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
111 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
128 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
179 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
111 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
116 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
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)
Chart (obsolete as of Q1 2013)
Form
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?