Currently, when you paste a text inside the input box of RadChat, the text is inserted in the text box as preview and you can either commit the message by pressing Enter or delete the text completely. However, if you have an image object in the clipboard and paste it to the input box, a ChatMediaMessage is directly inserted in RadChat without any preview.
This is a feature request for illustrating a preview image above the input box like most popular chat applications like Skype.
RadRichTextEditor renders the text with a little bigger characters spacing than RadRichTextBox and MS Word.
Hello,
when drag and dropping documents in Dock layout, after some operations application crashes. Crash can be reproduce even in Dock sample from Telerik (Visual Studio Demo). Drag and drop documents into middle area, let them create more pages in one tab and then drag and drop pages to change their order. After several order changes application crashes to windows.
I have a RadRichTextEditor. When it contains multiple lines a vertical scroll bar is shown. When I keep writing and press the enter key to insert a carriage return, it starts a new paragraph but the cursor disappears.
When I press return at the bottom of this control I want the cursor to be kept in sight. See the screenshots I have attached. You can see that after the return you can only see the very top of the cursor, the rest is hidden. You have to actually manually scroll down to get it into view.
When you start typing, this cursor comes into view, but I want it to be in view even if you just press return. Is there a way to get it to do this?
This seems to be the default behavior of this control, as I have created a new application to show this, which doesn't contain any of the formatting which my actual application does.
To reproduce: Add a RadLabel with text, set its background to red, its border to Yellow and start the project. You will notice that there is one pixel outside the border. Workaround: Set the Borderthickness of the LabelElement to 0: label2.LabelElement.BorderThickness = new Padding(0);
Code to reproduce: this.radLabel1.BackColor = Color.Yellow; this.radLabel1.BorderVisible = true; this.radLabel1.LabelElement.LabelBorder.ForeColor = Color.Red; WORKAROUND: this.radLabel1.LabelElement.LabelBorder.FitToSizeMode = RadFitToSizeMode.FitToParentBounds;
RadMaskedEditBox - (2019.3.903.40) - Text property not respecting numeric mask formatting on Up, Down keys
To repeat the bug create the RadMaskedEditBox and set the next properties:
this.radMaskedEditBox1.Mask = "N0";
this.radMaskedEditBox1.MaskType = MaskType.Numeric;
Enter the 111 in the editor. With the up/down keys set all of the values to 0.
Expected value is 0, got 000.
By using the following code snippet, RadPopupEditor needs to indicate focus similar to RadDropDownList with the same properties applied:
Please run the attached sample project and follow the steps illustrated in the gif file. Not always the selected appointment is dragged.
Workaround:
public class CustomSchedulerInputBheavior : SchedulerInputBehavior
{
public CustomSchedulerInputBheavior(RadScheduler scheduler) : base(scheduler)
{
}
Point mouseDownPosition = Point.Empty;
public override bool HandleMouseDown(MouseEventArgs args)
{
mouseDownPosition = args.Location;
return base.HandleMouseDown(args);
}
public override bool HandleMouseMove(MouseEventArgs args)
{
SchedulerCellElement cell = this.Scheduler.ElementTree.GetElementAtPoint(args.Location) as SchedulerCellElement;
AppointmentElement appointment = this.Scheduler.ElementTree.GetElementAtPoint(args.Location) as AppointmentElement;
if (appointment == null)
{
appointment = this.Scheduler.ElementTree.GetElementAtPoint(this.mouseDownPosition) as AppointmentElement;
}
if (this.Scheduler.Behavior.ItemCapture != null && (this.Scheduler.Behavior.ItemCapture.Parent is RadScrollBarElement ||
this.Scheduler.Behavior.ItemCapture is RadScrollBarElement))
{
return false;
}
if (this.Scheduler.Capture && args.Button == MouseButtons.Left)
{
appointment = this.Scheduler.ElementTree.GetElementAtPoint(this.mouseDownPosition) as AppointmentElement;
FieldInfo fi = typeof(SchedulerInputBehavior).GetField("selecting", BindingFlags.Instance| BindingFlags.NonPublic);
bool selecting = (bool)fi.GetValue(this);
if (selecting)
{
if (cell != null && cell.AllowSelection && args.Button == MouseButtons.Left)
{
this.SelectCell(cell, true);
}
}
else if (this.Scheduler.SchedulerElement.ResizeBehavior.IsResizing)
{
this.Scheduler.SchedulerElement.ResizeBehavior.Resize(args.Location);
}
else if (appointment != null && IsRealDrag(args.Location))
{
this.Scheduler.Capture = false;
this.Scheduler.DragDropBehavior.BeginDrag((SchedulerVisualElement)appointment.Parent, appointment);
return true;
}
}
else
{
if (appointment != null)
{
this.Scheduler.SchedulerElement.ResizeBehavior.RequestResize(appointment, (SchedulerVisualElement)appointment.Parent, false);
}
else
{
this.Scheduler.Cursor = Cursors.Default;
}
}
return false;
}
private void SelectCell(SchedulerCellElement cell, bool extend)
{
this.Scheduler.SelectionBehavior.SelectCell(cell, extend);
}
}
this.radScheduler1.SchedulerInputBehavior = new CustomSchedulerInputBheavior(this.radScheduler1);
This will allow the users to scroll through the tiles in all rows when the available height is insufficient. WORKAROUND: class CustomPanorama : RadPanorama { RadScrollBarElement vScroll; protected override void CreateChildItems(Telerik.WinControls.RadElement parent) { base.CreateChildItems(parent); this.vScroll = new RadScrollBarElement(); this.vScroll.ScrollType = ScrollType.Vertical; this.vScroll.StretchHorizontally = false; this.vScroll.StretchVertically = true; this.vScroll.MinSize = new System.Drawing.Size(16, 0); this.vScroll.Alignment = System.Drawing.ContentAlignment.TopRight; this.PanoramaElement.Children.Add(vScroll); this.vScroll.ValueChanged += new EventHandler(vScroll_ValueChanged); this.PanoramaElement.GroupLayout.RadPropertyChanged += new Telerik.WinControls.RadPropertyChangedEventHandler(GroupLayout_RadPropertyChanged); this.PanoramaElement.TileLayout.RadPropertyChanged += new Telerik.WinControls.RadPropertyChangedEventHandler(GroupLayout_RadPropertyChanged); this.ScrollBarAlignment = HorizontalScrollAlignment.Bottom; } void GroupLayout_RadPropertyChanged(object sender, Telerik.WinControls.RadPropertyChangedEventArgs e) { if (e.Property == RadElement.BoundsProperty && sender == this.GetCurrentLayout()) { UpdateVScroll(); } } protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); UpdateVScroll(); } private void UpdateVScroll() { vScroll.Maximum = this.GetCurrentLayout().Size.Height; vScroll.LargeChange = Math.Max(0, (int)(this.Size.Height - this.PanoramaElement.ScrollBar.Size.Height)); if (vScroll.LargeChange >= vScroll.Maximum) { vScroll.Visibility = ElementVisibility.Hidden; } else { vScroll.Visibility = ElementVisibility.Visible; } if (this.PanoramaElement.ScrollBar.Visibility == ElementVisibility.Visible) { vScroll.Margin = new System.Windows.Forms.Padding(0, 0, 0, this.PanoramaElement.ScrollBar.Size.Height); } else { vScroll.Margin = new System.Windows.Forms.Padding(0); } } void vScroll_ValueChanged(object sender, EventArgs e) { this.GetCurrentLayout().PositionOffset = new System.Drawing.SizeF(0, -this.vScroll.Value); } private LayoutPanel GetCurrentLayout() { if (this.ShowGroups) { return this.PanoramaElement.GroupLayout; } return this.PanoramaElement.TileLayout; } public override string ThemeClassName { get { return typeof(RadPanorama).FullName; } set { base.ThemeClassName = value; } } }
I am working on a Windows Forms Application that load and print PDF document then unload that document and load new one, but when i call unloadDocument() no new document was loaded :
RadPdfViewer rViewer = new RadPdfViewer();
rViewer.DocumentLoaded += RViewer_DocumentLoaded;
rViewer.LoadDocument(Filepath);
rViewer.LoadElementTree();
Application.DoEvents();
rViewer.PdfViewerElement.StopWaiting();
if (rViewer.IsLoaded)
{ rViewer.UnloadDocument(); }
after unloadde the document i cannot load new PDF doccument?
I have integration radscheduler and radganttview.
Load data
Dim ds as new DataSource
Dim dvAppointments As New DataView
Dim appointmentMappingInfo As New AppointmentMappingInfo()
Dim SchedSource As New SchedulerBindingDataSource()
appointmentMappingInfo.Mappings.Add(New SchedulerMapping("Kontrahent", "pln_kntakronim"))
appointmentMappingInfo.Start = "pln_start"
appointmentMappingInfo.End = "pln_stop"
appointmentMappingInfo.Location = "pln_nr"
appointmentMappingInfo.ResourceId = "pln_zamgidnumer"
appointmentMappingInfo.Description = "pln_opis"
appointmentMappingInfo.Resources = ""
appointmentMappingInfo.Location = "pln_nrzam"
appointmentMappingInfo.Summary = "pln_twrkod"
appointmentMappingInfo.StatusId = "pln_status"
dvAppointments.Table = ds.Tables("PlanowanieTamborow")
SchedSource.EventProvider.Mapping = appointmentMappingInfo
bsPlanowanie.DataSource = dvAppointments 'BindingSource
SchedSource.EventProvider.DataSource = bsPlanowanie
RadScheduler1.DataSource = SchedSource
RadGanttView1.DataProvider = New GanttViewIntegrationProvider(RadScheduler1)
refresh data
Dim reader As System.Data.SqlClient.SqlDataReader = comm.ExecuteReader
ds.Tables("PlanowanieTamborow").Clear()
ds.Tables("PlanowanieTamborow").Load(reader)
ds.Tables("PlanowanieTamborow").AcceptChanges()
ds.Tables("PlanowanieTamborow")
If I refresh the Radscheduler then RadGanttView doesn't refresh
Radscheduleris working properly
Set one of the monitors to use 125% DPI scaling. Start the attached project on a monitor with 100% DPI scaling - the form is expected to be with size 400,400. Move the form to the monitor with 125% DPI scaling. You are expecting the form's size to be 500,500, but it is 507,521. Please refer to the screenshots.
Workaround:
Override the RadForm.ScaleControl method as follows:
Protected Overrides Sub ScaleControl(factor As SizeF, specified As BoundsSpecified)
Dim initialSize As Size = Me.Size
MyBase.ScaleControl(factor, specified)
Me.Size = TelerikDpiHelper.ScaleSize(initialSize, factor)
End Sub
The UI behaivor of drag selection shows inconsistent behavior between WinForm vs WPF/Excel.
When you drag some cells for selection and keep dragging to the right (getting the out scope), the control scrolls to the right.
This behavior is common in Winform/WPF/Excel.
When you drag backward (to the left), WPF controls scroll back and so is Excel, while Winform controls does not scroll
Same thing for top and bottom scroll. Winform Spreadsheet control does not scroll. It may scrolls only to the right.
Another Caveat I see meanwhile is that when you scroll backwards until the row area, the pointer become row-resize pointer, or so
If you keep mouse moving around, it sometimes makes a horizontal line (possibly a guide for row resize?)
The issue in this case is that, it does not remove itself. the horizontal line stays there. It is not very annoying (as it is thin horizontal line) but is still a bug.
To reproduce,
create a empty Winform app, with the RadSpreadsheet Control, and Run
Drag from row C3 and to the right (around the scrollbar) the control scrolls to the right (this is not quite smooth though..)
Scroll right to AZ3 say, and drag backward back to C3, this now does not scroll back.
Same for top and bottom.
Do the same for WPF, it now works as expected
Do the same for MS Excel, it now works as expected.
I have noticed in the routing there is no maxSolutions parameter available when querying the bing map api routing parameter.
https://docs.microsoft.com/en-us/bingmaps/rest-services/routes/calculate-a-route
Hi Guys,
ColorDialog on higher dpi has some small problems.
1. Size of dialog is larger so there is large gap in right and bottom part.
2. Selected radio button black circle is not in center of larger circle.
Best regards
Rene