Telerik Forums
UI for WinForms Forum
0 answers
62 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
112 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
128 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
262 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
140 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
145 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
101 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
3 answers
255 views

Hello there,

I have a telerik tree view with tens of thousands of nodes (around 190k). When I load this in most computers, it works ok, sometimes it takes a few seconds to open nodes, but that's acceptable for the number of nodes.

But, in some Windows 10 computers (not all of them), the tree takes more than 20 min to respond, if it ever does. This happens when clicking anywhere in the tree component (expand buttons, nodes, scrollbar...).

One of the computers details where it hangs is:

  • Windows 10 Enterprise (64 bit). Version 1703.
  • .NET 4.7.1
  • Telerik 2018.1.116.40
  • The laptop has a touch screen

After debugging I found the tree is stuck in GetChild() method (it loops through all the nodes, several times), from RadTreeViewAccessibleObject (attached call stack). This seems to come from windows messages.

Checking in computers where the tree doesn't hang, this call never happens, which makes me think it's a problem with the implementation of windows messages, in some specific version of windows + hardware.

Any ideas on how to fix or bypass this?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 May 2018
2 answers
107 views

 Isn't there any way to add an add (+) button to the pageview so that the user can add pages from the pageview itself

please help me with a code and a screenshot.

thanks In advance

 

Ahmed
Top achievements
Rank 1
 answered on 07 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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?