Telerik Forums
UI for WinForms Forum
5 answers
277 views

I am using a RadDiagram control to place custom RadDiagramsShapes on it (C#). One of my requirements is to display a Form by double-clicking on a Shape. I followed the rationale of https://www.telerik.com/forums/assigning-raddiagramshape-mouseclick-eventhandler-programmatically, but I have not been capable of implementing the necessary event handler. I checked the documentation and looked for examples that could help me. However, I have not found anything useful to solve this issue.

I am just starting in winForms and C#, so I would be very grateful if you could help me with this problem.

Thank you.

Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2020
3 answers
401 views

Greetings,

In order to apply fade-in effect to rad controls (if possible), a nice approach is to increase the opacity of RootElement from 0 to 1 gradually with a timer. It works just fine with most of the rad controls including radbuttons, but there is an issue when I apply this method to a rad group box.

I attached a gif file that illustrates the issue (please notice that the blue background is actually the background of radgroupbox itself, not the container form).

Changing opacity of Radgroupbox.RootElement only affects the border frame of the box, not the whole box itself (background color stays still even with RootElement.Opacity = 0 ).

 

Any suggestion to fade in a radgroupbox ?

 

Thanks in advance.

Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2020
1 answer
1.0K+ views

Hello , 

I need to change the selected value in my parent form but the component is in the user controller .

So when I set the value to the multicombobox does not work knowing that the text and selected index take the value well .

 

                    Dim page As New RadPageViewPage()
                    Dim panel As New MyPanel()
                    strip= TryCast(RadPage1.ViewElement, RadPageViewStripElement)
                    page.Text = "page" & (strip.Items.Count + 1)
                   
                    Dim Liste1 As List(Of object) 
                    panel.RadMultiColCmbo1.DisplayMember = "Name"
                    panel.RadMultiColCmbo1.ValueMember = "PK"
                    panel.RadMultiColCmbo1.DataSource = Liste1

                    dim object 1 = myobject 

                   panel.RadMultiColCmbo1.Selectedvalue =myobject.PK 

 

Please help! 

Thank you 

                    
                 

       

Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2020
7 answers
868 views
hello to all i m using rad control to making project  and database of mysql(odbc) now i want to give utility of  take backup and restore database how can i give send me some code for it.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Oct 2020
11 answers
237 views

Hello Telerik,

I linked a radPivotFieldList with a radPivotGrid. All of my radPivotFieldList's Controls used the CustomName expect the FieldList.

Is there any way to use Custom Name instead of Property Name ? 

 

I try this code too but it doesn't work
radPivotFieldList1.FieldsControl.Nodes[0].RootNode.Text="my text0";

Finally I try to remove a Node and adding another but it doesn't work because of the FielList is automaticaly updating after : 

                 Telerik.WinControls.UI.RadTreeNode test = new RadTreeNode(){Value =radPivotFieldList1.FieldsControl.Nodes[0].Value, Text="test" } ;

               radPivotFieldList1.FieldsControl.Nodes.Remove(radPivotFieldList1.FieldsControl.Nodes[0]);
               radPivotFieldList1.FieldsControl.Nodes.Add(test);

 

Best regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Oct 2020
2 answers
182 views

Hi guys,

Is it possible to change the RadFormTitleBarElement default context menu (Minimize, Maximize, Restore, etc.) for a customized one? I have seen that RadTitleBar has a ContextMenuProperty property exposed, but I cannot find it in my RadForm embebed title bar.

Thank you very much.

Joaquín
Top achievements
Rank 2
 answered on 30 Sep 2020
3 answers
293 views

Hi,

 

How can I do to have a simple RadRichTextEditor. See attached image please.

 

Best regards.

Eusebio.

Hristo
Telerik team
 answered on 30 Sep 2020
1 answer
69 views

I accidentally deleted a top level menu item in the RadMenu control on the main form of the project.  This action could not be undone.  Attempts to add the menu element back resulted in errors about duplicate entries.  VS2019 subsequently crashed and restarted.  Further attempts to open the main form of the application resulted in errors upon opening the form.

 

With all efforts to recover the form proving futile, I deleted the form and attempted to add a new RadForm to replace it.  However, instead of a new form being added only a VB code module is created.  It is now impossible to add any new type of RadForm to this project, though it is possible to create a new project.

 

Is there a known solution to this problem?  If not, then I will create a new project and main form and import the other project modules.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Sep 2020
7 answers
3.1K+ views
Hi,

how can I hide the tabs from the PageViewControl?

best regards,

Jan
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 28 Sep 2020
1 answer
1.8K+ views

The grid does not seem to be subscribing to PropertyChanged on INotifyPropertyChanged. All the bound data objects provide INotifyPropertyChanged, but when they go to fire this event the event handler is null; meaning no one is listening. The grid keeps showing the old data until I select the row.

 

Here is code to reproduce it:

public partial class RadForm1 : RadForm
{
    private Timer _timer;
    private ObservableCollection<GridData> _data;
 
    public static bool GridBound = false;
 
    public RadForm1()
    {
        InitializeComponent();
    }
 
    protected override void OnLoad( EventArgs e )
    {
        base.OnLoad( e );
 
        var gv = new RadGridView();
        gv.Dock = DockStyle.Fill;
        Controls.Add( gv );
 
        _data = new ObservableCollection<GridData>()
        {
            new GridData { First = "A", Second = "B", Third = "C" },
            new GridData { First = "AA", Second = "BB", Third = "CC" },
            new GridData { First = "AAA", Second = "BBB", Third = "CCC" }
        };
        gv.DataSource = _data;
        GridBound = true;
 
        _timer = new Timer();
        _timer.Tick += _timer_Tick;
        _timer.Interval = 1000;
        _timer.Start();
    }
 
    private void _timer_Tick( object sender, EventArgs e )
    {
        _data[0].First = "D";
        _data[1].Second = "EE";
        _data[2].Third = "FFF";
 
        _timer.Stop();
    }
 
    private class GridData : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged( string name )
        {
            if( PropertyChanged == null && RadForm1.GridBound )
            {
                Debug.WriteLine( $"PropertyChanged is null, grid has not subscribed! Name = '{name}'" );
            }
 
            PropertyChanged?.Invoke( this, new PropertyChangedEventArgs( name ) );
        }
 
        private string _first;
        private string _second;
        private string _third;
 
        public string First { get => _first; set { _first = value; OnPropertyChanged( "First" ); } }
        public string Second { get => _second; set { _second = value; OnPropertyChanged( "Second" ); } }
        public string Third { get => _third; set { _third = value; OnPropertyChanged( "Third" ); } }
    }
}
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Sep 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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?