Hi.
What is the best way to react to a shape being drag-dropped onto the diagram from the toolbox?
The toolbox is in an additional form.
Regards
Bernhard

Please take a look at attached image...
For the left side bar menu on that image which control of telerik should i use?
Would you please lead me to examples of that?
Thanks in advance

Hi
I've recently released a version of our software that had version 2019.1.117.40 of Telerik.Soon afterwards I needed to reformat and rebuild my working environment, reinstall visual studio and telerik and received a telerik version error after loading up my solution. So I ran an upgrade which installed 2019.1.219.40.
After this I started experiencing errors in the Virtual Grid. Last week I added a thread to the forum about access violations when calling bestfit on a column, it was suggested that my code should wait until the form is loaded/shown before doing this.In version 2019.1.117.40 I hadn't experienced this problem despite all the hours I'd spent developing and testing.
The form in question contains a panel which is parented onto a host form, so it never receives a formshown event, I use the hostform shown event to call the code on the child. But, the child panel contains a pageview with 4 pages, each of which contains a virtual grid. Even though the form is visible, I'm experiencing that same access violation on the first page of data.
Now, I'm seeing another problem which I didn't experience in 2019.1.117.40, when I attempt to change the sort order.
"Collection was modified; enumeration operation may not execute"
at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
at Telerik.WinControls.UI.VirtualGridRowElement.<GetCellElements>d__0.MoveNext()
at Telerik.WinControls.UI.VirtualGridRowElement.SynchronizeCells(Boolean updateContent)
at Telerik.WinControls.UI.VirtualGridRowElement.Synchronize(Boolean updateContent)
at Telerik.WinControls.UI.VirtualGridTableElement.SynchronizeRows(Boolean recursive, Boolean updateContent)
at Telerik.WinControls.UI.VirtualGridTableElement.OnViewInfoPropertyChanged(Object sender, PropertyChangedEventArgs e)
at Telerik.WinControls.RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs e)
at Telerik.WinControls.UI.VirtualGridViewInfo.OnNotifyPropertyChanged(PropertyChangedEventArgs e)
at Telerik.WinControls.RadObject.OnNotifyPropertyChanged(String propertyName)
at Telerik.WinControls.UI.VirtualGridViewInfo.set_IsWaiting(Boolean value)
at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.WaitCursor(Boolean showWaiting) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 1059
at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.AskForData(Int32 pageIndex) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 1009
at pulse.move.views.UserCentre.Tabs.GridHandlers.UserCentreVirtualGridHandler.AskForData(Int32 pageIndex) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\UserCentre\Tabs\GridHandlers\UserCentreVirtualGridHandler.cs:line 94
at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.OnMasterViewSortChanged() in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 847
at pulse.move.views.Helpers.MemberSelection.VirtualGridHandlerClassBase.OnSortChanged(Object sender, VirtualGridEventArgs e) in W:\Projects\pulse.smartcentre.root\pulse.smartcentre\pulse.move.views\Helpers\MemberSelection\VirtualGridHandlerClass.Base.cs:line 865
at Telerik.WinControls.UI.RadVirtualGridElement.OnSortDescriptorsChanged(VirtualGridViewInfo viewInfo)
at Telerik.WinControls.UI.VirtualGridViewInfo.sortDescriptors_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Collections.Generic.NotifyCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.Collections.Generic.NotifyCollection`1.EndUpdate(Boolean notify)
at Telerik.WinControls.UI.VirtualGridInputBehavior.HandleMouseUp(MouseEventArgs args)
at Telerik.WinControls.UI.RadVirtualGrid.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Although there are backup directories, how do I rollback to this earlier version of controls now I've had to reformat?

In simple mode, binding works correctly.
..............
//Define property
private float start;
public float Start
{
get => start;
set
{
if (value == Start) return;
start = value;
OnPropertyChanget("Start");
}
}
..............................................
//Binding
radTrackBar1.DataBindings.Add("Value", Data, "Start", true, DataSourceUpdateMode.OnPropertyChanged);
radTrackBar2.DataBindings.Add("Value", Data, "Start", true, DataSourceUpdateMode.OnPropertyChanged);
.........................................................
How can I use binding in range mod?
radTrackBar1.Ranges[0].Start = 1;
radTrackBar1.Ranges[0].End = 50;
radTrackBar2.Ranges[0].Start = 1;
radTrackBar2.Ranges[0].End = 50;
//Define property ??????????????????????
//Binding ??????????????????????????
Thanks!

I've looked at other posts, but I didn't see where I went wrong.
(review attached screenshot for a better understanding)
In my situation, I add background color to row cells where this is an "A" value in the cell. This stands for an aisle in a warehouse.
If you scroll slowly, then the background color stays within the rows with an "A", but if you scroll too fast, the display shows green in various cells. Also, if I clear the grid and rebuild it with new data, the background color is not reset. The previous rows that were green are still green.
What am I missing?
01.Private Sub dgvMain_CellFormatting(sender As Object, e As CellFormattingEventArgs) Handles dgvMain.CellFormatting02. If _LeftOrRightConveyor = "LEFT" And e.CellElement.ColumnIndex = AisleColumnLeft_Idx Then03. e.CellElement.BackColor = System.Drawing.Color.LightGreen04. ElseIf _LeftOrRightConveyor = "RIGHT" And e.CellElement.ColumnIndex = AisleColumnRight_Idx Then05. e.CellElement.BackColor = System.Drawing.Color.LightGreen06. End If07. 08. If e.CellElement.Value = "A" Then09. e.CellElement.BackColor = System.Drawing.Color.Lime10. End If11.End Sub
Hi For some reason the theme fluent dark is not being applied to a show dialog function. I have included the designer file and the main form code below for your to check but all other forms are working fine which is weird.
Main Form Code.
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using Telerik.WinControls;using FuelActivityTrackerDapperDal;using FuelActivityTrackerDapperDal.Models;using FuelActivityTrackerDesktop.Forms;using System.Linq;namespace FuelActivityTrackerDesktop.Forms{ public partial class Login : Telerik.WinControls.UI.RadForm { ActivityTrackerDapperDal db = new ActivityTrackerDapperDal(); public IEnumerable<Users> _users { get; set; } public Login() { InitializeComponent(); } private void Login_Load(object sender, EventArgs e) { _users = db.GetALLUsers(); ThemeResolutionService.ApplyThemeToControlTree(this, "FluentDark"); } private void btnLogin_Click(object sender, EventArgs e) { if(txtUsername.Text == "") { MessageBox.Show("Please enter your login details", "Fuel"); } Users _user = _users.Where(w => w.UserName.ToLower() == txtUsername.Text.Trim().ToLower() && w.Password.ToLower() == txtPassword.Text.Trim().ToLower()).FirstOrDefault(); LoggedIn.UserName = _user.UserName; LoggedIn.UserId = _user.id; LoggedIn.StaffId = _user.StaffId; if (_user.isActive == true) { frmMain _frmmain = new frmMain(); this.Hide(); _frmmain.ShowDialog(); } else MessageBox.Show("Your account has been made inactive , Please check with Administrator", "Fuel"); DialogResult = DialogResult.OK; } private void txtPassword_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) btnLogin_Click(sender, e); } }}
Designer file of the form.
namespace FuelActivityTrackerDesktop.Forms{ partial class Login { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); this.imagePanel = new System.Windows.Forms.Panel(); this.logoPictureBox = new System.Windows.Forms.PictureBox(); this.radPanel1 = new Telerik.WinControls.UI.RadPanel(); this.radLabel3 = new Telerik.WinControls.UI.RadLabel(); this.radLabel2 = new Telerik.WinControls.UI.RadLabel(); this.radLabel1 = new Telerik.WinControls.UI.RadLabel(); this.txtPassword = new Telerik.WinControls.UI.RadTextBox(); this.txtUsername = new Telerik.WinControls.UI.RadTextBox(); this.btnCancel = new Telerik.WinControls.UI.RadButton(); this.btnLogin = new Telerik.WinControls.UI.RadButton(); this.fluentDarkTheme1 = new Telerik.WinControls.Themes.FluentDarkTheme(); this.fluentTheme1 = new Telerik.WinControls.Themes.FluentTheme(); this.imagePanel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).BeginInit(); this.radPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.radLabel3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPassword)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUsername)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.btnCancel)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.btnLogin)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); this.SuspendLayout(); // // imagePanel // this.imagePanel.Controls.Add(this.logoPictureBox); this.imagePanel.Dock = System.Windows.Forms.DockStyle.Left; this.imagePanel.Location = new System.Drawing.Point(0, 0); this.imagePanel.Name = "imagePanel"; this.imagePanel.Size = new System.Drawing.Size(129, 148); this.imagePanel.TabIndex = 9; // // logoPictureBox // this.logoPictureBox.Cursor = System.Windows.Forms.Cursors.Hand; this.logoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill; this.logoPictureBox.Image = ((System.Drawing.Image)(resources.GetObject("logoPictureBox.Image"))); this.logoPictureBox.Location = new System.Drawing.Point(0, 0); this.logoPictureBox.Name = "logoPictureBox"; this.logoPictureBox.Size = new System.Drawing.Size(129, 148); this.logoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.logoPictureBox.TabIndex = 0; this.logoPictureBox.TabStop = false; // // radPanel1 // this.radPanel1.Controls.Add(this.radLabel3); this.radPanel1.Controls.Add(this.radLabel2); this.radPanel1.Controls.Add(this.radLabel1); this.radPanel1.Controls.Add(this.txtPassword); this.radPanel1.Controls.Add(this.txtUsername); this.radPanel1.Location = new System.Drawing.Point(152, 12); this.radPanel1.Name = "radPanel1"; this.radPanel1.Size = new System.Drawing.Size(369, 117); this.radPanel1.TabIndex = 10; this.radPanel1.Text = "radPanel1"; this.radPanel1.ThemeName = "FluentDark"; // // radLabel3 // this.radLabel3.AutoSize = false; this.radLabel3.Location = new System.Drawing.Point(3, 74); this.radLabel3.Name = "radLabel3"; this.radLabel3.Size = new System.Drawing.Size(123, 24); this.radLabel3.TabIndex = 18; this.radLabel3.Text = "Password"; this.radLabel3.ThemeName = "FluentDark"; // // radLabel2 // this.radLabel2.AutoSize = false; this.radLabel2.Location = new System.Drawing.Point(3, 48); this.radLabel2.Name = "radLabel2"; this.radLabel2.Size = new System.Drawing.Size(123, 24); this.radLabel2.TabIndex = 17; this.radLabel2.Text = "UserName"; this.radLabel2.ThemeName = "FluentDark"; // // radLabel1 // this.radLabel1.Location = new System.Drawing.Point(3, 12); this.radLabel1.Name = "radLabel1"; this.radLabel1.Size = new System.Drawing.Size(156, 18); this.radLabel1.TabIndex = 16; this.radLabel1.Text = "Please enter your login details"; this.radLabel1.ThemeName = "FluentDark"; // // txtPassword // this.txtPassword.Location = new System.Drawing.Point(132, 76); this.txtPassword.Name = "txtPassword"; this.txtPassword.Size = new System.Drawing.Size(192, 24); this.txtPassword.TabIndex = 15; this.txtPassword.ThemeName = "FluentDark"; this.txtPassword.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPassword_KeyDown); // // txtUsername // this.txtUsername.Location = new System.Drawing.Point(132, 48); this.txtUsername.Name = "txtUsername"; this.txtUsername.Size = new System.Drawing.Size(192, 24); this.txtUsername.TabIndex = 14; this.txtUsername.ThemeName = "FluentDark"; // // btnCancel // this.btnCancel.Location = new System.Drawing.Point(527, 42); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(110, 24); this.btnCancel.TabIndex = 12; this.btnCancel.Text = "Cancel"; this.btnCancel.ThemeName = "FluentDark"; // // btnLogin // this.btnLogin.Location = new System.Drawing.Point(527, 12); this.btnLogin.Name = "btnLogin"; this.btnLogin.Size = new System.Drawing.Size(110, 24); this.btnLogin.TabIndex = 11; this.btnLogin.Text = "Login"; this.btnLogin.ThemeName = "FluentDark"; this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click); // // Login // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(660, 148); this.Controls.Add(this.imagePanel); this.Controls.Add(this.radPanel1); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnLogin); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Login"; // // // this.RootElement.ApplyShapeToControl = true; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Login"; this.ThemeName = "Fluent"; this.Load += new System.EventHandler(this.Login_Load); this.imagePanel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radPanel1)).EndInit(); this.radPanel1.ResumeLayout(false); this.radPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.radLabel3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radLabel2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radLabel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtPassword)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtUsername)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.btnCancel)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.btnLogin)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Panel imagePanel; private System.Windows.Forms.PictureBox logoPictureBox; private Telerik.WinControls.UI.RadPanel radPanel1; private Telerik.WinControls.UI.RadLabel radLabel3; private Telerik.WinControls.UI.RadLabel radLabel2; private Telerik.WinControls.UI.RadLabel radLabel1; private Telerik.WinControls.UI.RadTextBox txtPassword; private Telerik.WinControls.UI.RadTextBox txtUsername; private Telerik.WinControls.UI.RadButton btnCancel; private Telerik.WinControls.UI.RadButton btnLogin; private Telerik.WinControls.Themes.FluentDarkTheme fluentDarkTheme1; private Telerik.WinControls.Themes.FluentTheme fluentTheme1; }}

Hi,
Is there any option to get the pdf document directly from a scanner device?
Thanks in advance.

Hi
I have a grid bound to an empty dataset. When I load the form, it shows an empty row in the grid instead of showing the "Click Here to Add a New Item". As soon as I've added a row, the "Click Here to Add a New Item" row appears. How can I get it to show "Click Here to Add a New Item" at the start instead of showing an empty row?
Hello Telerik Team,
I need to change Font of Form dynamically.
I'm facing a problem with RadForm.
Unlike the Microsoft's Form, Rad Form did not automatically resize the form and child control (I attached sample screen shot).
I can't understand why. Pls Explain.
