Telerik Forums
UI for WinForms Forum
1 answer
990 views
I have a new project and am using .Net 5.0.  I have a RadForm with a RadTreeView control.  I am trying to get a DataSource selected for a RadTreeView control.  I am expecting the UI at this point to give me the option to add a new DataSource but that is not available.  When I manually add a System.Windows.Forms.BindingSource to the form it is also not listed in the available DataSources.  I am running VS 2019 Version 16.9.0 Preview 3.0 and Telerik 2021.1.122.  Is this the correct behavior at this point?
Hristo
Telerik team
 answered on 01 Feb 2021
3 answers
292 views

I have several panels on a form.  I need to dynamically create a CommandBar (vertical in this case) and place it on a panel.  I then need to reposition this panel and resize the one above so that the entire CommandBar is visible.  I would like to set the size and location of these panels based on the size of the CommandBar, but the Size property does not reflect the size required to display all the added buttons.

The CommandBar in the attached image has 5 button, but only three are visible.  If I knew the size of the CommandBar, I could set the Location of the panel containing the CommandBar and the Height of the panel above it, so that all 5 buttons would be visible.

How can I get the information needed to set the Size and Locations of the two panels as needed to make the dynamically created CommandBar visible.


Todor
Telerik team
 answered on 29 Jan 2021
8 answers
59 views
"RightItems" has several elements of type "RadButtonElement". How to listen for the "MouseEnter" event of the container that contains the "RadButtonElement".
For example, to change the color of "RadButtonElement" when hovering over the container?
Stoyan
Telerik team
 answered on 29 Jan 2021
0 answers
563 views

Only users that have Telerik installation version 2021.1.122 are affected.

Symptoms:

Clients that have Telerik installation version 2021.1.122 can not build successfully .NET Core/.NET 5.0 projects. The following error occurs while compiling the project:

The problem is a missing NuGet fallback folder.

Solution:

You should create the missing ToolboxNuGetPackages folder in the installation folder of the controls, usually at C:\Program Files (x86)\Progress\ToolboxNuGetPackages.

Nadya
Top achievements
Rank 1
 asked on 28 Jan 2021
1 answer
97 views

Hi,

According to this thread: https://www.telerik.com/forums/how-to-force-series-color

Children collection should be used to set specific color for pie element

radChartView1.Series[0].Children[0].BackColor = Color.Red;

However, I noticed "strange" behavior in data bound mode: As soon as reference to Children is made labels are not shown.

You can see this behavior in sample below:

Uncomment any of 2 lines below and you can see labels are not there

'series.Children(i).BackColor = Color.AntiqueWhite
'Dim point = CType(series.Children(i), DataPointElement)

Simple form with load event:

Imports Telerik.WinControls.UI
 
Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim chart = New RadChartView()
        chart.AreaType = ChartAreaType.Pie
        Me.Controls.Add(chart)
        Dim series = New PieSeries("ValueMember", "CategoryMember")
 
        Dim dataSource = New List(Of DataItem)
        dataSource.Add(New DataItem("10", "test1"))
        dataSource.Add(New DataItem("10", "test2"))
        dataSource.Add(New DataItem("10", "test3"))
        dataSource.Add(New DataItem("10", "test4"))
        series.ShowLabels = True
        series.DataSource = dataSource
 
        For i = 0 To series.Children.Count - 1
            'series.Children(i).BackColor = Color.AntiqueWhite
            'Dim point = CType(series.Children(i), DataPointElement)
        Next
 
        chart.Series.Add(series)
    End Sub
 
End Class

And data object:

Public Class DataItem
    Public Property ValueMember As String
    Public Property CategoryMember As String
 
    Public Sub New (valueM As String, categoryM As String)
        ValueMember = valueM
        CategoryMember = categoryM
    End Sub
 
End Class
Nadya | Tech Support Engineer
Telerik team
 answered on 26 Jan 2021
3 answers
143 views

Hi,

I am using RadChartView to plot a series of points. For each of these points I have a x and y coordinate as well as a standard deviation of the  measurements (each point is in fact a collection of measurements). How can I plot the error bars?

I saw this post explaining the procedure for wpf but I cant find a parallel way of doing it in winforms

https://www.telerik.com/blogs/how-to-create-scatter-error-bars-and-box-plot-series-with-radchart-for-sl-wpf

Sorry for not providing a starting point but I really have no clue of where to start from 

Hristo
Telerik team
 answered on 26 Jan 2021
1 answer
80 views

Hello, I am trying to get data with raddropdownlist and in case the item value selected equals to "nouveau_scénario" it will open automaticly another form else messagebox will be showen but nothing happen in both cases.

I developed this function to get data from SQLSERVER database (this works correctly ) :

        private void Combobox_scénario1()
        {        
            string constr = @"Data Source=****;Initial Catalog=****;User ID=****;Password=****";
            using (SqlConnection con = new SqlConnection(constr))
            {
                using (SqlDataAdapter sda = new SqlDataAdapter("SELECT [LIBELLE],[OID] FROM [AffecAnalytique].[dbo].[DESCRIPTIF] order by [DATEMODIF] DESC", con))
                {
                   using (SqlConnection con = new SqlConnection(constr))
             {
                 using (SqlDataAdapter sda = new SqlDataAdapter("SELECT [LIBELLE],[OID] FROM [AffecAnalytique].[dbo].[DESCRIPTIF] order by [DATEMODIF] DESC", con))
                 {
                     //Fill the DataTable with records from Table.
                     DataTable dt = new DataTable();
                     sda.Fill(dt);
                     
                     //Insert the Default Item to DataTable.
                     DataRow row = dt.NewRow();
                     radDropDownListElement2.Text = "Choix du Scénario";
                     row[0] = "Nouveau_scénario";
                     dt.Rows.InsertAt(row, 0);

                     //Assign DataTable as DataSource.
                     radDropDownListElement2.DataSource = dt;
                     radDropDownListElement2.DisplayMember = "LIBELLE";
                     radDropDownListElement2.ValueMember = "OID";
                }
            }
        }

 

here the function of selected index of raddropdownlist :

         private void radDropDownListElement2_Click(object sender, EventArgs e)
         {
             Console.WriteLine("fef :"+radDropDownListElement2.SelectedValue);
             if (string.IsNullOrEmpty(textBox3.Text) || textBox3.Text == "System.Data.DataRowView")
             {
                 MessageBox.Show(" Veuillez sélectionner un scénario ");
             }
             else if (radDropDownListElement2.Text == "Nouveau_scénario")
             {
                 this.IsMdiContainer = true;
                 Nouveau_Scenario = new Form_Nouveau_Scénario();
                 Nouveau_Scenario.MdiParent = this;
                 Nouveau_Scenario.Show();
             }
             else
             {
                 string message1 = radDropDownListElement2.SelectedValue.ToString();
                 string message2 = radDropDownListElement2.Text;
                 textBox3.Text = message2;
                 textBox4.Text = message1;

             }
         }

Peter
Telerik team
 answered on 26 Jan 2021
5 answers
215 views

Hi,

How do adjust the image in the available area?

Considering that the image can be little or big.

I attach an image.

Thanks,


Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jan 2021
5 answers
389 views

Hello,

We have a need to create a custom sort order for columns in a pivot grid.  (It's more like creating a Column Order rather than a Sort.)  For example, the columns are Size and the (Header) values are "S", "M", "L", "XL", "XXL" and the columns need to be displayed in this order.  The Row values would be the quantity ​for each size.  And to add a twist, the "Size" values are dependent on the product.  For example, a different product would have Size values of "S/M", "M/L", "L/XL".  So this functionality would need to be dynamic. 

Is this possible?

 

Thanks,

Mike

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jan 2021
2 answers
74 views

Hi,

 

I'm trying to use the autocompletebox in a way so I can use it to visualize filters in a search. In order to do that, I want to add a tag to the textblock element in order to later on identify the category of the text in the textblock element. I tried to play with the createtextblock event and formatting, but it doesn't quite work out. Can you give me some guideance? 

 

Thanks in advance!

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jan 2021
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?