Telerik Forums
UI for WinForms Forum
1 answer
635 views

Hi,

 

I'm currently using a dataentry connected to a bindingnavigator. I'm using the below code to check when the bindingsource collection change.

The goal is to disable the delete button in the bindingnavitor when the bindingsource collection has 1 item in it like shown below:

bs.ListChanged += (s, e) =>
                    {
                        int itemCount = Convert.ToInt32(bindingNavigator.BindingNavigatorElement.PageLabel.Text.Split(' ')[1]);
                        if (itemCount == 1)
                        {
                            bindingNavigator.BindingNavigatorElement.DeleteButton.Enabled = false;
                        }
                        else
                        {
                            bindingNavigator.BindingNavigatorElement.DeleteButton.Enabled = true;
                        }
                    };

 

However, I'm having a hard time disable the delete button. As seen in the ListChanged, I'm using below code to disable the button, but it seems that it has no effect at all. Am I doing something wrong?

bindingNavigator.BindingNavigatorElement.DeleteButton.Enabled = false;

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Dec 2020
7 answers
138 views

I see TabbedForm has RightItems and LeftItems. How to add various controls there?

I've tried creating a Button(Button btn = new Button();), and adding it(RightItems.add(btn)). However, this did not work, since the Add method asks for a certain RadItem ?! I did not find details and examples in the documentation :(

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Dec 2020
10 answers
192 views

Hello, 
We're using RadTreeView with a mutiselection and expect that SelectedNodesChanged event will be fired once user select/deselect set of nodes (e.g. with Shit Key), Unfortunately it fires much more times.
Example: if I have several nodes selected and just click on any single node, I expect SelectedNodesChanged event will be fired only once, or at least two times (collection cleared, and then filled with single node), but it fires as much as I have selected nodes plus one? are you ok with that?

Could you explain how it works? for me it looks like a bug. It's replicated on latest 2019 R1 release

Arnold
Top achievements
Rank 1
 answered on 24 Dec 2020
1 answer
97 views

Good morning, I would like to know how you can combine an object that contains a list inside it and be able to pass it to a list in the document. This is my class to combine:

public class Customer

{
        public string Name{ get; set; }

        public int Age{ get; set; }

        public string PaymentDate{ get; set; }
       
        public ObservableCollection<string> ChildrenName{ get; set; }

}

Martin
Telerik team
 answered on 24 Dec 2020
1 answer
105 views

Hi all,

I'm an onbording programmer and also new to Telerik.  I'm taking a look at Telerik products.  More specificaly at the Windows form TreeView from VS 2019 VB.NET.

I just tried to create a new Windows form project and added a RadTreeView.  I try to add nodes but they don't show up in the TreeView.  What I'm I doing wrong ?

 

I'm attaching a picture of the verry simple code with hope this can help you.

 

This is my first time here so I'm not sure if:

- I provide appropriate information

- I'm at the right place for that type of support

 

Just let me know!

 

Erik

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Dec 2020
1 answer
1.4K+ views

Hello Team,

I need to remove the spacing in the text right and left side, or the text needed to fit in the border. Please see the attached image.

Thanks.

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Dec 2020
11 answers
250 views
Dear Friends,

-First, I would Like to know if it is possible to use a Custom Color Dialog when selecting(changing) color from a ColorColumn?
(I can do it for other stuff in my Application but I don't know how in a GridView)

What I Mean by Custom is to be able to Choose Only From the Web Color like that:
RadColorDialog.ColorDialogForm.ShowBasicColors = False
RadColorDialog.ColorDialogForm.ShowSystemColors = False
RadColorDialog.ColorDialogForm.ShowProfessionalColors = False
RadColorDialog.ColorDialogForm.ShowHEXColorValue = False
RadColorDialog.ColorDialogForm.AllowColorPickFromScreen = False
RadColorDialog.ColorDialogForm.ShowCustomColors = False



-If it's Possible, can you guide me on which Event of the GridView I should do It !

Thank you!

Ben
Victor
Top achievements
Rank 2
 answered on 21 Dec 2020
1 answer
129 views

The docking advanced layout designer is broken when using Visual Studio 2019 Version 16.8.3, some buttons are missing so cannot add ToolWindows etc.

If copying from an old template from net 4.6, the initial docking layout works but dragging a window does not show the dock graphics overlay to dock anywhere.

Essentially docking looks broken on net5.0 (just checked and it's also broken on netcore3.1)

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Dec 2020
1 answer
193 views

I have a grid with 5 columns.  If I drag a c column (say 4) to the group by box then the groups are shown.  If I try to expand the groupby box with the mouse, rowchanged event is triggered and then reading a value from a cell, I get a null exception error.  

Once the group is expanded, and I click on a row, I need the row changed event to trigger.  

 

also, can I show the number of items in each group.  Now it shows the group Text, but I want to show the group text and count in the group.

 

Thanks as always

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Dec 2020
2 answers
135 views

Hi,

    I have 3 ChartViews on a form, I wish to export each to a separate Image.

I would like my routine to be generic so I can reuse it for many Chart sets.

I am trying the following.

foreach (ChartView x in PnlCharts.Controls.OfType<ChartView>())
            {
                x.ExportToImage();
            }

However the ExportToImage Method is not available.  It only seems to be available if I directly reference the instance inserted into the form.

eg ChartView1.ExportToImage();

Am I missing something here?

Why can I export from the instance, but not from the same instance when it is contained within a list?

kieran
Top achievements
Rank 2
 answered on 19 Dec 2020
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?