Telerik Forums
UI for WinForms Forum
5 answers
212 views

Hi,

I have a TextBox and I need to open a context menu (that I build dynamically based on the text present in the control) near at the current position of the caret.

How can I get the coordinates of the caret so I can pass them to the menu show method ?

I can change the control to a RadTextControl if needed.

Dimitar
Telerik team
 answered on 11 May 2018
1 answer
172 views

Hi,

I've implemented a DataEntry and everything works fine.

What I'm trying to do is to add a button near a TextBox which clicked should open up a new window with advanced search for selecting a new value to put in the TextBox.

Is this possible?

I'm trying to insert a custom control which contains a TextBox and a Button, but i don't know if it's the right way.

Thanks.

Dimitar
Telerik team
 answered on 11 May 2018
0 answers
70 views

Hello~~

I am find gantt item default expand property

void Init()

{

    //current using this way

   // I want  gantt Items default expand  is false

    DataSet ds = New DataSet();

    gantt.DataSource = ds;

     foreach(item in gantt.Items)

    {
         item.expand = false;

    }

}

 

 

HWI CHEOL
Top achievements
Rank 1
 asked on 11 May 2018
1 answer
123 views
I am using the EnableHeaderCheckBox to have a "Select All" checkbox in the header of my boolean column. I have the radgridview.EnableSorting = true and they work just fine, but when I click the "Select All" header checkbox and then try to sort any column, they do not sort at all. It does nothing. I am using Telerik UI for Winforms version 2017.2.502. Can someone please help?
Dimitar
Telerik team
 answered on 10 May 2018
1 answer
137 views

I use the font property when working with RadPropertyGrid.

My user entered a font size of -1. An exception is thrown and the program falls.

For comparison in the PropertyGrid (WinForms), this situation is correctly handled.

Hristo
Telerik team
 answered on 09 May 2018
1 answer
276 views
I can hide a layout item using HideItem() method but then how do I make it visible again?
Dimitar
Telerik team
 answered on 09 May 2018
4 answers
2.8K+ views

I think I read how to do this but searching 'FormClosing' in this forum didn't find anything much.

I simply need to cancel the closing of a form (after user dialog confirmation). Is this the correct approach?

private void OnFormClosing(object sender, FormClosingEventArgs e)
{
    var dlg = new DlgConfirmUnsavedForm();
    var result = dlg.ShowDialog();
    if (result == DialogResult.Cancel)
    {
        e.Cancel = true;
        OnClosing(e);
        return; //??
    }
    else if (result == DialogResult.Yes)
    {
        SaveForm();
    }
     
    ...
}

 

By the way, post editing is terrible!

Dimitar
Telerik team
 answered on 09 May 2018
3 answers
146 views

Hi,

I've a problem (again) when the MCCB is used in an Excel addin environment.

If the MCCB is used on a normal form (non modal) and you scroll (mouse wheel) inside the dropdown (grid) then the complete addin hangs.

If you do the same in an modal form, everything works fine.

Sample project is attached (rename to zip)

Steps to reproduce:

    button2 -> opens modal form (OK)
    button1 -> opens non modal form (not OK)
    open dropdown and then scroll inside grid with mouse wheel

Is there any workaround? (even if I have to disable mouse scrolling, would be better than an hanging application)

 

 

 

 

 

 

 

 

 

 

Dimitar
Telerik team
 answered on 08 May 2018
5 answers
155 views
Isn't there any way to add an extra button to the caption form like the help button without making the form border style (None)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 May 2018
3 answers
112 views

I'm using two RadTreeView to Drag and Drop Nodes from Right to Left. When "Node 1" is Drag from Right and Drop to Left RadTreeView a Dialog is shown.
If I Drag and Drop other Node before "Node 1" the Dialog stuck and I cannot write on the TexBoxes.

How can I solve this issue?

Main Form 

https://i.stack.imgur.com/Qf1QM.png

public partial class Main : RadForm
{
    public Main()
    {
        InitializeComponent();
    }
 
    private void RightRadTreeView_DragEnded(object sender, RadTreeViewDragEventArgs e)
    {
        if (e.Node.Text == "Node 1")
        {
            new RadForm1().ShowDialog();
        }
    }
 
    private void Form1_Load(object sender, EventArgs e)
    {
        //Right
        this.RightRadTreeView.Nodes.Add(new RadTreeNode { Text = "Node 1" });
        this.RightRadTreeView.Nodes.Add(new RadTreeNode { Text = "Node 2" });
        this.RightRadTreeView.Nodes.Add(new RadTreeNode { Text = "Node 3" });
        this.RightRadTreeView.Nodes.Add(new RadTreeNode { Text = "Node 4" });
    }
}

 

Dialog Form

https://i.stack.imgur.com/hH7Ln.png

 

Hristo
Telerik team
 answered on 08 May 2018
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?