Telerik Forums
UI for WinForms Forum
1 answer
107 views
So, I created my own Context menu, which works fine, Now i want to call the "AppointmentEditDialog" from it and still have it pass the selected appointment info to edit.  
Dimitar
Telerik team
 answered on 12 Sep 2017
4 answers
234 views

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);
        }
    }
}
Christ
Top achievements
Rank 2
 answered on 11 Sep 2017
3 answers
132 views

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.

gipsy
Top achievements
Rank 1
 answered on 11 Sep 2017
4 answers
329 views

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.

 

 

Hristo
Telerik team
 answered on 08 Sep 2017
1 answer
92 views

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?

Dimitar
Telerik team
 answered on 08 Sep 2017
3 answers
312 views

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).

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Sep 2017
0 answers
58 views

HI,

   Is there any way to update summary item row's cell from external data. 

 

Regards 

Harsha D

harsha
Top achievements
Rank 1
 asked on 07 Sep 2017
9 answers
1.0K+ views

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);

}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Sep 2017
0 answers
123 views

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

Hajun
Top achievements
Rank 1
 asked on 07 Sep 2017
0 answers
108 views

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

 

Hajun
Top achievements
Rank 1
 asked on 07 Sep 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?