Telerik Forums
UI for WinForms Forum
1 answer
10 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
15 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
19 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
2 answers
11 views

I have tried to use <span style="font-family: 'Segoe UI'; color:gray; font-size: 12">Forename</span> but I do not believe the font is being applied. I use this style when the row is selected within a WinForms RadGridView. If the row is not selected (as a test) I have the same HTML markup without the font-family style and a different font is loaded (not sure which).  

The screenshot shows the highlighted row in purple. Notice the lower curl of the g and y is present - whereas on the unselected rows - these letters have that part missing.

 

Note: The rendering of the grid take a very long time - as if it is failing to render rows with this font and so falls back to a default

 

Could you explain the problem?

Paul
Top achievements
Rank 1
Iron
 answered on 08 Jul 2021
1 answer
16 views

I am trying to work on a scheduler interface that will allow a user to enter appointments.

The system is working when I apply no filter and load data through the following:

try
{
entities.Appointments.Load();
schedulerBindingDataSource1.EventProvider.DataSource = entities.Appointments.Local.ToBindingList();//filteredAppointmentsByLocation;
this.radScheduler1.DataSource = schedulerBindingDataSource1;
}

The above works and allows me to add, edit and delete without issues.

If I try to add a filter to get specific information:
var filteredAppointmentsByLocation = entities.Appointments.Local.ToBindingList().Where(x => x.LocationID.Equals(ActiveLocation));

and set this as the datasource, I cannot add new items when I do entities.SaveChanges().  I get an error saying it cannot add to a read-only or fixed-size list.  Edits are saved, deletes are not done.

Please advise

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

Hello

When i use RadprintDocument to print a radgridview in a winform ,i have a problem that the logo used in the left header section shrinking m
I have found a question in your forum,and i follow your instructions to solve this problem but still not working;

can you give me some help by sending a small sample in vb.net please...

thx in advance

Regards

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

Hello, 

I'm facing a little problem concerning the radVirtualKeyboard control. I'm located in France and I would like the virtual keyboard to have the AZERTY-laoyout. No matter If I use the property SynchronizeCultureWithSystem or if I set the culture info manually, the keyboard only adapts some of the keys but the general layout remains QWERTY. 

I'm using the code 

radVirtualKeyboard1.SynchronizeCultureWithSystem = false;
radVirtualKeyboard1.VirtualKeyboardElement.CurrentCulture = new System.Globalization.CultureInfo("fr-FR", false);

This is the result: 

The code
radVirtualKeyboard1.SynchronizeCultureWithSystem = false;
radVirtualKeyboard1.VirtualKeyboardElement.CurrentCulture = new System.Globalization.CultureInfo("de-DE", false);

leads to this result which is not correct as well because the german keyboard layout is QWERTZ

Is there maybe another property to set to apply the culture info to the entire keyboard?

Thank you in advance and have a nice day!

Jana

Jana
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 07 Jul 2021
1 answer
10 views

So I use the RadAutoCompleteBox to list many options a user can pick that are then added to another textbox.

So once they select it, I take that "Token" and copy it to a "Selected Box".

How would I go about Removing the token after I have copied it in the token validating event.

 

Thanks

 

Rog

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

Greetings,

There seems to be an issue with the RadDesktopAlert on Windows 7.

The code below illustrates  how I create an instance of RadDesktopAlert  and setting its properties to my desired values :


Dim dskAlert As New RadDesktopAlert

Sub ShowAlert()

        dskAlert.ResetLocationModifier()
        dskAlert.IsPinned = True
        dskAlert.AutoClose = False
        dskAlert.CanMove = True
        dskAlert.Opacity = 1
        dskAlert.Popup.Parent = ME
        dskAlert.ThemeName = "VisualStudio2012Light"
        dskAlert.FadeAnimationFrames = 10
        dskAlert.FadeAnimationType = FadeAnimationType.FadeIn
        dskAlert.PopupAnimationFrames = 20
        dskAlert.PopupAnimationEasing = Telerik.WinControls.RadEasingType.InOutCubic
        dskAlert.PopupAnimationDirection = RadDirection.Down
        dskAlert.ShowCloseButton = True
        dskAlert.ContentText = "This is a test"
        dskAlert.RightToLeft = System.Windows.Forms.RightToLeft.No
        dskAlert.ScreenPosition = Telerik.WinControls.UI.AlertScreenPosition.Manual
        dskAlert.ShowOptionsButton = False
        dskAlert.ShowPinButton = False
        dskAlert.PlaySound = False
        dskAlert.AutoSize = True
        dskAlert.Popup.AlertElement.Font = New Font("Tahoma", 10, FontStyle.Regular)
        dskAlert.Popup.AlertElement.ContentElement.TextAlignment = ContentAlignment.MiddleCenter
        dskAlert.Popup.AlertElement.ForeColor = Color.Red
        dskAlert.Popup.AlertElement.ContentElement.Font = New Font("Tahoma", 10, FontStyle.Regular)
        AddHandler dskAlert.Popup.PopupOpening, AddressOf dskAlert_PopupOpening
        dskAlert.Show()

End Sub

  Private Sub dskAlert_PopupOpening(sender As Object, args As CancelEventArgs)
        Dim arg = TryCast(args, RadPopupOpeningEventArgs)
        arg.CustomLocation = New Point((Me.Width - dskAlert.Popup.Width) \ 2,
                         (Me.Height - dskAlert.Popup.Height) \ 2)
  End Sub

It works fine on my Windows 8.1, however, the RadDesktopAlert box doesn't show up on Windows 7 as I tested many times. After several attempts to find out what causes the issue, I found the code line below to be the cause :

dskAlert.Popup.Parent = ME

It seems that setting parent property of the popup property makes the popup box invisible. I preferred to write "INVISIBLE", because there seems to be an invisible from showing up in front of the main form and this makes all the controls of the main form UnClickable.

What's your opinion about this issue ?

 

 

 

Stoyan
Telerik team
 answered on 06 Jul 2021
2 answers
11 views

Hi,

    Is the cell formatting option Shrink to fit available for this control?

In the format cell section there are formatting options available, usually there is -Wrap Text -Shrink to fit etc.  in your dialog box there is wrap text but no shrink to fit

I would like to make available for my excel template editor, I am just not sure whether it is hidden somewhere else or unavailable.

Thanks.

Tanya
Telerik team
 answered on 06 Jul 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
Calendar, DateTimePicker, TimePicker and Clock
ChartView
ComboBox and ListBox (obsolete as of Q2 2010)
Buttons, RadioButton, CheckBox, etc
Chart (obsolete as of Q1 2013)
DropDownList
ListView
PageView
Form
MultiColumn ComboBox
TextBox
Menu
PropertyGrid
RichTextEditor
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
Carousel
ListControl
Panorama
PdfViewer and PdfViewerNavigator
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
AutoCompleteBox
VirtualGrid
Label
Panel
ContextMenu
Visual Studio Extensions
Documentation
TitleBar
SplitContainer
DesktopAlert
Rotator
Map
TrackBar
ProgressBar
SpinEditor
StatusStrip
MessageBox
ShapedForm
CheckedDropDownList
CheckedListBox
LayoutControl
Spreadsheet
CAB Enabling Kit
CollapsiblePanel
Conversational UI, Chat
Wizard
ScrollablePanel
TextBoxControl
WaitingBar
BrowseEditor
DateTimePicker
GroupBox
TabbedForm
Tools - VSB, Control Spy, Shape Editor
ImageEditor
DataEntry
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ScrollBar
ApplicationMenu
ColorDialog
RangeSelector
DataFilter
CardView
SyntaxEditor
BindingNavigator
PopupEditor
Barcode
ColorBox
WebCam
Callout
CalculatorDropDown
DataLayout
ValidationProvider
VirtualKeyboard
Styling
BreadCrumb
FontDropDownList
PictureBox
RibbonForm
TimePicker
ToastNotificationManager
Accessibility
ButtonTextBox
Licensing
Localization
Rating
Security
Separator
SparkLine
TimeSpanPicker
FilterView
TaskBoard
+? more
Top users last month
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Liu
Top achievements
Rank 1
Iron
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
George C.
Top achievements
Rank 2
Iron
Veteran
Top users last month
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Liu
Top achievements
Rank 1
Iron
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
George C.
Top achievements
Rank 2
Iron
Veteran