Telerik Forums
UI for WinForms Forum
1 answer
400 views

I am excited to see that you have added the RadToggleSwitch and after viewing the different types of appearances in the animated gif on the website; I encountered two issues.

First, I cannot find any documentation on it - except this (http://www.telerik.com/help/winforms/buttons-toggleswitch-overview.html)

Which doesn't really tell you anything - and I realize it's new and you still need to update the website...

 But the second thing is that I cannot see where one changes the appearance of the ToggleSwitch... unless I'm completely overlooking something... Is there an appearance dropdown combo or something that allows one to change the look of the switch as shown in the link above?

 Thank you in advance.

Ralitsa
Telerik team
 answered on 25 Jun 2015
1 answer
80 views

I'm using v2015.1.331.40 and if the series I feed my pie chart has 0 for all values AND I have ShowSmartLables = true, then my code just hangs when it tries to render the chart. 

 

private static void ThisChartHangs()
        {
            Telerik.WinControls.UI.RadChartView chart = null;

            try
            {
                chart = new Telerik.WinControls.UI.RadChartView();
                chart.AreaType = Telerik.WinControls.UI.ChartAreaType.Pie;

                chart.Width = 360;
                chart.Height = 360;
                chart.ShowSmartLabels = true;

                var series = new Telerik.WinControls.UI.PieSeries();
                
                for (int x = 0; x < 8; x++)
                {
                    series.DataPoints.Add(new Telerik.Charting.PieDataPoint(0.0, "Type " + x.ToString()));
                }

                chart.Series.Add(series);

                using (var bmp = new System.Drawing.Bitmap(chart.ClientSize.Width, chart.ClientSize.Height))
                {
                    chart.DrawToBitmap(bmp, chart.Bounds);

                    using (var stream = new System.IO.FileStream(@"c:\temp\NeverRenders.png", System.IO.FileMode.Create, System.IO.FileAccess.Write))
                    {
                        bmp.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
                    }
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                if (chart != null)
                {
                    foreach (var series in chart.Series)
                    {
                        series.DataPoints.Clear();
                    }

                    chart.Dispose();
                }
            }
        }

Hristo
Telerik team
 answered on 25 Jun 2015
1 answer
208 views

Greetings,

I have read/researched in this forum and the documentations but can't find what I need.  So my question:

In treeview control (Both in winform & WPF), do we have option to have multiple selections for nodes?  Shift + click or Ctrl + click shortcuts would be super helpful.

 

Thanks

John.

Stefan
Telerik team
 answered on 25 Jun 2015
1 answer
117 views

I have some old project i did in c# wvidusl studio 2012 pro.

All i have left is the exe file.

I tried to use the Telerik to decompile and get my source code but when i'm adding the code to visual studio and try to build the solution i'm getting a lot of errors all about that there is a square with question mark inside.

I could go and fix error by error but there more then 5000.

Almost every variable replaced with square and question mark inside.

 

What could it be ? Any way to fix it ? The problem is with the Telerik ?

Tsviatko Yovtchev
Telerik team
 answered on 24 Jun 2015
3 answers
307 views

I have multiple LineSeries that are tied to a common DateTimeContinuousAxes for X and multiple LinearAxes for Y.

So each LineSeries is tied to the common DateTimeContinuousAxis .

Each LineSeries may have its own dedicated Linear Axis OR may share a linear axis with other series.

Its the series that share both x and y axes that are confusing to the user.

To make this visually clear to the user, I have set the color of these line series and the corresponding shared Y axis color to match, so that its obvious that series A, B and C share the same Y axis (say "VOLTS").

 

But now I have multiple series with the same color. So I need to have the points for each individual series have a different shape so you can easily discriminate between the series.

For example, Series A, B and C all share a common Y Axis, and all three are green in color, but Series A points are a Green Triangle, Series B is a Green Square and Series C is a Green Circle.

 

Seems pretty straight forward...right?

 I know I can do this on the ScatterSeries, but I see no way to set the Point Shape for a Point in LineSeries. Some thing similar to the example below...

 

      private void ApplyShapeToPoints(ElementShape shape) 
        { 
            ScatterSeries series = this.radDropDownListSeries.SelectedValue as ScatterSeries; 
 
            foreach (ScatterPointElement point in series.Children) 
            { 
                point.Shape = shape; 
            } 
        } 

 

But I cant use a scatterseries because my data is time based....

 

Any ideas?

 

MG

Dimitar
Telerik team
 answered on 24 Jun 2015
1 answer
127 views

how to show custom context menu strip on gridview cell

context menu having items "red, green,purple,gray" colors

and when any color is clicked ...then background color of that particular cell should changed to selected color

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2015
1 answer
136 views

I have allowed my user to change the number of Rows in a Group residing in a Panorama via a form with a Property Grid (see image 5_Rows.png).  After this value has changed, and the property is updated, all of the existing tiles are pushed together (see image 6_RowsSaved.png).  The only thing that fixes this is if I change the size of the Panorama (which is a child control of a split panel - I am actually just moving the splitter and the tiles seem to refresh after that).

 Can you tell me how I can refresh the tile positions programmatically after I have updated the RowsCount property?

 

Thanks!

Laura

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2015
1 answer
439 views

I want to color a PieChart I made with unique color depending on the legend.

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

- How can I not change the backcolor of the legend?

- How can I access the legend name with Series[0].Children[0].

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2015
6 answers
340 views

Hi guys,

I would disable a ComboBox that shows all TimeZones, I would set local time and prohibit to change it.

How can I do?

I attached print screen

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jun 2015
1 answer
181 views

Hi there,

How can i link the GanttView control with access data table? I mean how can i build the sql sentence and link to the gantt control?

This is my code below:

        Dim strSQLCa As String
        Dim dsTask As New DataSet

        strSQLCa = "SELECT ID, PARENTID, TITLE, TSTART, TEND, TPROGRESS FROM TASK ORDER BY PROJID, PARENTID, ID"

        Dim adpTC As New OleDb.OleDbDataAdapter(strSQLCa, connPRO)
        dsTask.Tables.Add("TableTask")
        adpTC.Fill(dsTask.Tables("TableTask"))

        Dim data As New DataSet()
        data.Tables.Add("Task")

        Me.RadGanttView1.GanttViewElement.TaskDataMember = "Tasks"
        Me.RadGanttView1.GanttViewElement.ChildMember = "Id"
        Me.RadGanttView1.GanttViewElement.ParentMember = "ParentId"
        Me.RadGanttView1.GanttViewElement.TitleMember = "Title"
        Me.RadGanttView1.GanttViewElement.StartMember = "Start"
        Me.RadGanttView1.GanttViewElement.EndMember = "End"
        Me.RadGanttView1.GanttViewElement.ProgressMember = "Progress"
        Me.RadGanttView1.GanttViewElement.LinkDataMember = "Links"
        Me.RadGanttView1.GanttViewElement.LinkStartMember = "StartId"
        Me.RadGanttView1.GanttViewElement.LinkEndMember = "EndId"
        Me.RadGanttView1.GanttViewElement.LinkTypeMember = "LinkType"

        Me.RadGanttView1.GanttViewElement.DataSource = dsTask.Tables("TableTask")

        Me.RadGanttView1.Columns.Add("Start")
        Me.RadGanttView1.Columns.Add("End")

 

And I'm getting the following error:

 "Child list for field Tasks cannot be created."

Please can you guys help me with this?

 

Thank you in advance.

Jorge

Hristo
Telerik team
 answered on 23 Jun 2015
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?