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,
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?
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?
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:
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.
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
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:
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!
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.
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 ?
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.