In my GridView the user selects a number of rows, and then asks to do some processing based on each of the selected rows, one by one.
The rows are typically selected by "normal" multirow selection, by pressing the shift or ctrl key and clicking the rows/range of rows in question. The last clicked row is then selected, and the arrow to the left is on this row, while the others are marked with blue.
When the processing begins the first (topmost) row and then the rest in sequence. I would like the arrow to follow the row in progress, but by setting CurrentRow, the "multiselection" is cleared, and only the CurrentRow is marked with blue.
Is there a way to programatically move the arrow to the left without clearing the "multiselection"?
Regards, Jill-Connie Lorentsen
| Imports System.Web |
| Imports Telerik.WinControls.UI |
| Partial Public Class RadRibbonForm1 |
| Private Sub rbeD1CPT_Click(ByVal sender As Object, ByVal e As EventArgs) Handles rbeD1CPT.Click |
| System.Diagnostics.Process.Start("iexplorer.exe", "http://www.google.com") |
| End Sub |
| Public Sub buttonClickEvent(ByVal sender As Object, ByVal e As EventArgs) Handles rbeD1CPT.Click |
| Dim rbeD1CPT As RadButtonElement = TryCast(sender, RadButtonElement) |
| System.Diagnostics.Process.Start("iexplorer.exe", DirectCast(rbeD1CPT.Tag, String)) |
| End Sub |
| End Class |
| Dim Foo As New TextBox |
| Foo.Text = "Bar" |
| Dim hostItem As New RadHostItem(toto) |
| MyRibbonBarGroup.Items.Add(hostItem) |
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Windows.Forms; |
| using Telerik.WinControls.UI; |
| using Telerik.WinControls.UI.Docking; |
| using System.Drawing; |
| namespace toolWindowTest |
| { |
| static class Program |
| { |
| /// <summary> |
| /// Point d'entrée principal de l'application. |
| /// </summary> |
| [STAThread] |
| static void Main() |
| { |
| Application.EnableVisualStyles(); |
| Application.SetCompatibleTextRenderingDefault(false); |
| Application.Run(new MainForm()); |
| } |
| } |
| public partial class MainForm : RadForm { |
| public MainForm() { |
| InitializeComponent(); |
| IsMdiContainer = true; |
| radDock.AutoDetectMdiChildren = true; |
| } |
| Bitmap bitmap; |
| protected override void OnCreateControl() { |
| base.OnCreateControl(); |
| bitmap = new Bitmap(16, 16); |
| DrawToBitmap(bitmap, new Rectangle(0, 0, 16, 16)); |
| Clipboard.SetImage(bitmap); |
| } |
| private void radButton_Click(object sender, EventArgs e) { |
| ToolWindow toolWindow = new ToolWindow(); |
| toolWindow.Image = bitmap; |
| radDock.DockControl(new ToolWindow(), DockPosition.Right, DockType.ToolWindow); |
| } |
| } |
| partial class MainForm { |
| /// <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); |
| } |
| private void InitializeComponent() { |
| this.radDock = new Telerik.WinControls.UI.Docking.RadDock(); |
| this.documentContainer1 = new Telerik.WinControls.UI.Docking.DocumentContainer(); |
| this.radPanel = new Telerik.WinControls.UI.RadPanel(); |
| this.radButton = new Telerik.WinControls.UI.RadButton(); |
| ((System.ComponentModel.ISupportInitialize)(this.radDock)).BeginInit(); |
| this.radDock.SuspendLayout(); |
| ((System.ComponentModel.ISupportInitialize)(this.documentContainer1)).BeginInit(); |
| ((System.ComponentModel.ISupportInitialize)(this.radPanel)).BeginInit(); |
| this.radPanel.SuspendLayout(); |
| ((System.ComponentModel.ISupportInitialize)(this.radButton)).BeginInit(); |
| ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); |
| this.SuspendLayout(); |
| // |
| // radDock |
| // |
| this.radDock.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(254))))); |
| this.radDock.Controls.Add(this.documentContainer1); |
| this.radDock.Dock = System.Windows.Forms.DockStyle.Fill; |
| this.radDock.DocumentManager.DocumentInsertOrder = Telerik.WinControls.UI.Docking.DockWindowInsertOrder.InFront; |
| this.radDock.Location = new System.Drawing.Point(0, 0); |
| this.radDock.MainDocumentContainer = this.documentContainer1; |
| this.radDock.Name = "radDock"; |
| this.radDock.Size = new System.Drawing.Size(284, 201); |
| this.radDock.TabIndex = 0; |
| this.radDock.TabStop = false; |
| this.radDock.Text = "radDock"; |
| // |
| // documentContainer1 |
| // |
| this.documentContainer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(254))))); |
| this.documentContainer1.Location = new System.Drawing.Point(0, 0); |
| this.documentContainer1.Name = "documentContainer1"; |
| this.documentContainer1.Size = new System.Drawing.Size(284, 201); |
| this.documentContainer1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Fill; |
| this.documentContainer1.TabIndex = 0; |
| this.documentContainer1.TabStop = false; |
| // |
| // radPanel |
| // |
| this.radPanel.Controls.Add(this.radButton); |
| this.radPanel.Dock = System.Windows.Forms.DockStyle.Bottom; |
| this.radPanel.Location = new System.Drawing.Point(0, 201); |
| this.radPanel.Name = "radPanel"; |
| this.radPanel.Size = new System.Drawing.Size(284, 30); |
| this.radPanel.TabIndex = 1; |
| // |
| // radButton |
| // |
| this.radButton.AllowShowFocusCues = true; |
| this.radButton.Location = new System.Drawing.Point(3, 3); |
| this.radButton.Name = "radButton"; |
| this.radButton.Size = new System.Drawing.Size(75, 23); |
| this.radButton.TabIndex = 0; |
| this.radButton.Text = "ToolWindow"; |
| this.radButton.Click += new System.EventHandler(this.radButton_Click); |
| // |
| // MainForm |
| // |
| this.ClientSize = new System.Drawing.Size(284, 231); |
| this.Controls.Add(this.radDock); |
| this.Controls.Add(this.radPanel); |
| this.Name = "MainForm"; |
| // |
| // |
| // |
| this.RootElement.ApplyShapeToControl = true; |
| ((System.ComponentModel.ISupportInitialize)(this.radDock)).EndInit(); |
| this.radDock.ResumeLayout(false); |
| ((System.ComponentModel.ISupportInitialize)(this.documentContainer1)).EndInit(); |
| ((System.ComponentModel.ISupportInitialize)(this.radPanel)).EndInit(); |
| this.radPanel.ResumeLayout(false); |
| ((System.ComponentModel.ISupportInitialize)(this.radButton)).EndInit(); |
| ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); |
| this.ResumeLayout(false); |
| } |
| private Telerik.WinControls.UI.Docking.RadDock radDock; |
| private Telerik.WinControls.UI.Docking.DocumentContainer documentContainer1; |
| private Telerik.WinControls.UI.RadPanel radPanel; |
| private Telerik.WinControls.UI.RadButton radButton; |
| } |
| class ToolWindow : Telerik.WinControls.UI.Docking.ToolWindow { |
| public ToolWindow() { |
| Text = "No image..."; |
| } |
| } |
| } |
Hello,
I have several custom width columns in my RadGrid and when I click in a cell that is partially displayed the grid horizontally auto scrolls to bring the entire column into view. This functionality is great in most cases but when the column contains buttons it causes undesired results.
IE: Cell contains several buttons but the entire cell isn’t visible within the grid. When the user clicks the first button the grid auto scrolls, bringing the column into view, but the button click event that fires is for one of the hidden buttons instead of the button clicked. We think this is happening because the auto scrolling fires before the click event and since the mouse cursor in now on a new button after the scrolling it fires that event instead of first clicked button.
One of two solutions will work for me.
1. Either suppress the auto horizontal scrolling so the column doesn’t shift into view.
Or
2. Make sure the proper button click event fires.
How do I make either of these happen?
Regards,
Mike