Hello, if execute the attached code, the ContextMenuOpening event is not raised with ContextMenuStrip
how can I edit the contextmenu depending on the node? Can't use ContextMenu nor RadContextMenu for the purpose.
Maybe can I capture the mouse position before the contextmenu gets opened and find the tree node in some ways?
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows.Forms;
namespace
WindowsFormsApplication4
{
public
class
Form1 : Form
{
private
IContainer components;
private
ContextMenuStrip contextMenuStrip1;
private
ToolStripMenuItem aToolStripMenuItem;
private
Telerik.WinControls.UI.RadTreeView radTreeView1;
public
Form1()
{
this
.components =
new
System.ComponentModel.Container();
this
.radTreeView1 =
new
Telerik.WinControls.UI.RadTreeView();
this
.contextMenuStrip1 =
new
System.Windows.Forms.ContextMenuStrip(
this
.components);
this
.aToolStripMenuItem =
new
System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize) (
this
.radTreeView1)).BeginInit();
this
.contextMenuStrip1.SuspendLayout();
this
.SuspendLayout();
this
.radTreeView1.Location =
new
System.Drawing.Point(16, 12);
this
.radTreeView1.Size =
new
System.Drawing.Size(251, 152);
this
.radTreeView1.ContextMenuOpening +=
new
Telerik.WinControls.UI.TreeViewContextMenuOpeningEventHandler(
this
.radTreeView1_ContextMenuOpening);
this
.contextMenuStrip1.Items.AddRange(
new
System.Windows.Forms.ToolStripItem[] {
this
.aToolStripMenuItem});
this
.contextMenuStrip1.Name =
"contextMenuStrip1"
;
this
.aToolStripMenuItem.Name =
"aToolStripMenuItem"
;
this
.aToolStripMenuItem.Text =
"A"
;
this
.aToolStripMenuItem.Click +=
new
System.EventHandler(
this
.aToolStripMenuItem_Click);
//
// Form1
//
this
.ClientSize =
new
System.Drawing.Size(284, 261);
this
.Controls.Add(
this
.radTreeView1);
((System.ComponentModel.ISupportInitialize) (
this
.radTreeView1)).EndInit();
this
.contextMenuStrip1.ResumeLayout(
false
);
this
.ResumeLayout(
false
);
radTreeView1.ContextMenuStrip =
this
.contextMenuStrip1;
}
string
context =
"radTreeView1_ContextMenuOpening WAS NOT executed"
;
private
void
radTreeView1_ContextMenuOpening(
object
sender, Telerik.WinControls.UI.TreeViewContextMenuOpeningEventArgs e)
{
context =
"radTreeView1_ContextMenuOpening WAS executed"
;
}
private
void
aToolStripMenuItem_Click(
object
sender, EventArgs e)
{
MessageBox.Show(
this
, context);
}
}
}
Hi,
if you change the
GraphicalViewElement.TimelineStart
of the GanttView to a date inside the range of nodes, to just print a part of the Gannt, the graphical representation overlaps the table.
The expected result should be that the printed timeline gets cut at the TimelineStart, like it correctly does at TimelineEnd.
After completing an upgrade, when presented with the results page where each item has "What's Changed" this link is not clickable, when it should be according to http://docs.telerik.com/devtools/winforms/winforms-converter/step-by-step-tutorial
I've included a gif, that shows them, not showing as links, nor responding to clicks.
Hi
I'd like to customise the InsertHyperlinkDialog so that it only accepts links that start with http. Is there any way to do this?
I have a complex object and one of the variables is an enum. When I assign the object to the PropertyGrid's selected item, it generates a DropDownListEditor for the enum row correctly. However, the display text is automatically the ToString of the enum, which is not ideal for users to see and read. I want to change the display text to be the Description tagged to the enum values but I can't figure out a way to change what the DropDownListEditor displays or to update the values databound to the dropdown to achieve what I want.
public enum ExposureMode
{
[Description("Full Auto")] FullAuto,
[Description("Auto Filter, Fixed Exposure")] AutoFilFixedExp,
[Description("Fixed Filter, Auto Exposure")] FixedFilAutoExp,
[Description("Fixed Filter, Fixed Exposure")] FullFixed
}
So I want the Descriptions to be displayed instead of the ToString (i.e. "Auto Filter, Fixed Exposure" instead of AutoFilFixedExp).
HI,
Is there any way to update summary item row's cell from external data.
Regards
Harsha D
Hi all,
I am using GridViewRelation with Custom Cell:
Now when i loop rows i can not get cell element in gridview:
foreach(var row in gridview.rows)
{
var cell = gvLaborGuide.TableElement.GetCellElement(row, column);
}
Hi. I'm using v.2014.4.1104.40 and VS C#.
I was success to prevent the print processing form(page N of N form) by changing from
RadPrintDocument.PrintController = PrintControllerWithStatusDialog to StandardrintController().
In same way, I tried to change RadPrintPreviewDialog but I couldn't find the solution.
How to prevent(or disable) the print processing form of RadPrintPreviewDialog?
Best Regard
Hi.
I have List<RadPrintDocument> and each item is already filled with some contents(Text, image, and so on).
I want to insert or add these documents(or pages) to RadPrintPreviewDialog.Document of Iprintable class
for printing or saving the file.
Is it possible to insert or add them?
I searched and I coudn't find a solution of this problem.
(Need some examples)
Best regard