Telerik Forums
UI for WinForms Forum
1 answer
174 views

Hi.

I have a listbox on a form.  The user enters a value in a text box, clicks a button, the value is added to the list.  All that works.  The button click also sets the selected item to be the just entered value and calls scrolltoitem to reposition the listbox.  The list box doesn't reposition.

Here is the code from the button click function:


        private void radButton1_Click(object sender, EventArgs e)
        {
            var item = radTextBox1.Text;
            if (string.IsNullOrWhiteSpace(item))
                return;

            // let's make sure this folder doesn't already exist in the list.
            if (radListControl1.Items.Contains(item))
                return;

            var newItem = new RadListDataItem(item, item);

            radListControl1.Items.Add(newItem);
            radListControl1.SelectedItem = newItem;

            radListControl1.ScrollToItem(newItem);
        }

I have also attached a working example.

Why doesn't this work as expected?

Thanks

-marc

 

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Jul 2021
3 answers
202 views

Hi,

We experienced some performance issue with the tabbedform components when there are some tab opened. When you try to move the application, by selecting the title bar, the move is very laggy. 

You can reproduce the issue with the demo project "First Look" of tabbedform. Just add 20 tabs and try to move the application, you will experienced some lags.

Do you have a workaround to avoid this behavior ?

Thanks a lot

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Jul 2021
1 answer
154 views

Hi Team,

          In our application we are using the RadTreeView control to add the Menu items. 
While clicking or mouse over on the Menu items (Form Name) the folder icon should be highlight. Please do the needful. Video link mentioned below for your reference.

Video link : https://ttprivatenew.s3.amazonaws.com/pulse/suganya-gmail/attachments/17438074/TinyTake13-07-2021-04-01-27.mp4

Screenshot : https://prnt.sc/1aruj97

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Jul 2021
1 answer
229 views

SOLVED:  InitializeComponent() wasn't being called. Thought this was automatic?

I would have deleted this post, but there is no option.

 

I dragged the RadCheckedListBox to the form. But when I try to add data to the Item property, I get an exception because the control is null. I thought that like other controls, the RadCheckedListBox methods and properties could be accessed without having to be instantiated first. The instantiation is in Private Sub InitializeComponent() :

Me.cklstSuppressedTickets = New Telerik.WinControls.UI.RadCheckedListBox()
CType(Me.cklstSuppressedTickets,System.ComponentModel.ISupportInitialize).BeginInit
Me.grpSuppressedTickets.Controls.Add(Me.cklstSuppressedTickets)
Me.cklstSuppressedTickets.Columns.AddRange(New Telerik.WinControls.UI.ListViewDetailColumn() {ListViewDetailColumn1})
Me.cklstSuppressedTickets.Location = New System.Drawing.Point(78, 61)
Me.cklstSuppressedTickets.Name = "cklstSuppressedTickets"
Me.cklstSuppressedTickets.Size = New System.Drawing.Size(290, 357)
Me.cklstSuppressedTickets.TabIndex = 0

 

cklstSuppressedTickets is the RadCheckedListBox that I added to the form using the designer. When I highlight the control in code during debug, it shows cklstSuppressedTickets as 'Nothing'.

	Private Sub LoadList()
		Dim tkt As KeyValuePair(Of String, string)
		For each tkt In dctTickets
			cklstSuppressedTickets.Items.Add(tkt.Key & "  -  " & tkt.Value)
		Next
	End Sub

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Jul 2021
1 answer
154 views

Hi

Please Help

Language: VB.Net (VS2017)

Telerik Version: 2017.3.1017

I am printing from radGridView with RadPrintDocument. Please advise how to add row numbers in the printpreview/print document.

In radGridView, row number is there in Row Header.

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 13 Jul 2021
2 answers
251 views

Hi,

I have a RadGrid containing a self-referencing hierarchy of data. All works perfectly. 

However, when it comes to styling, I am using one of the standard theme. However, I would like to change the default images for the expand/collapse arrows for showing/hiding the child elements, but nothing else .

How do I go about handling this?

Regards

Thomas

 

 

 
Thomas Bargholz
Top achievements
Rank 1
Iron
 answered on 13 Jul 2021
1 answer
117 views

I am trying to disable HTML-like text formatting for appointments in a Scheduler that I have, but so far nothing is working. I have tried setting the DisableHTMLRendering property to true for myScheduler.ViewElement, myScheduler.SchedulerElement and have even tried it in the CellFormatting event handler where I set the property for mySchedulerCellEventArgs.CellElement. I am getting the same results in my main project as well as in a new test project that I created.

Thanks - Logan

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jul 2021
1 answer
188 views
I'm just comparing the Autocomplete Features of AutoCompleteBox and TextBoxControl.

Is the Tokenization of multiple Items the Key Feature of AutoCompleteBox ? Or could it behave/look like a normal TextBox also.

I found from your Demos, the AutocompleteBox will, if you type "Jon", find an item like "Sebastian Jonnson".
TextBoxControl doesn't . It only finds strings, who starts with the typed Sequence, not contain a sequence.

Is this general behaviour, or are there settings to control how a match is made ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jul 2021
1 answer
166 views

All,

A simple question regarding the Calendar for the RadDateTimePicker using Microsoft WinForms.

The behavior I'm trying to fix is this:

I've put a KeyDown handler on the parent RadDateTimePicker that filters out backspace presses (since we don't want them in that control or any hosted controls in it). This appears to work fine (I can see the handler fire when this control has the focus). The RadDateTimePicker also has a hosted calendar control that can be accessed via a mouse click. When clicking on the UI element to get the popup Calendar, it properly pops up.. but when in the Calendar, if I now press the Backspace key, the Calendar popup disappears (this is the undesirable behavior).

I've tried this type of C# code to override keydown for the popup RadCalendar to get it to ignore Backspaces and it does not appear to work (I'm using exactly the same handler for now since I know it works):

            this.m_radDateTimePicker = new Telerik.WinControls.UI.RadDateTimePicker();

            //other initialization of the m_radDateTimePicker..

           Telerik.WinControls.UI.RadDateTimePickerCalendar calendarBehavior = (this.m_radDateTimePicker.DateTimePickerElement.GetCurrentBehavior() as Telerik.WinControls.UI.RadDateTimePickerCalendar);
            Telerik.WinControls.UI.RadCalendar calendar = calendarBehavior.Calendar as Telerik.WinControls.UI.RadCalendar;
            Telerik.WinControls.UI.RadCalendarElement calendarElement = calendar.CalendarElement as Telerik.WinControls.UI.RadCalendarElement;
            calendarElement.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RadDateTimePicker_KeyDown);

 

I've tried this also on the RadCalendar (calendar.KeyDown += ...), to no effect.  Where should I place KeyHandler to get the popup Calendar to ignore Backspaces?

 

Thanks for your attention,

Richard

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jul 2021
2 answers
181 views

I need to draw 2,520 square shapes on a RadMap. I have the  locations (let, lng) of each square. They should have different colors (as in the attached image)

 When I use polygons to draw the squares, I face 2 issues:

(1) it takes very long time to complete the drawing of 2520 squares,

(2) I run out of memory as this process takes over 3 GB of memory.

Is there a better way to do this task?

 

Hristo
Telerik team
 answered on 08 Jul 2021
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?