Telerik Forums
UI for WinForms Forum
1 answer
143 views

Hello,

I have issues with major step on the y linearAxis changing when zooming in. Generated ticks and corresponding grid is displayed correctly only in the case when whole chart is shown (zoom = 1). When I zoom in, interval between ticks on y axis is changed. Please note that I have applied similar logic on the zoom event on the x axis and it's working fine. However, it seems that MajorStep on the linear y axis cannot be changed in the same like MajorTickInterval  on the categorical x axis. So, how to keep interval between ticks on the y axis constant after changing the zoom settings?

Here is the code snippet I'm using:

private void View_ZoomChanged(object sender, EventArgs e)
        {
            var horizontalAxis = radChartView1.Axes[0] as CategoricalAxis;
            int DesiredHorizontalTickInterval = 12;
            double horizontalScale = (radChartView1.View as IChartView).ZoomWidth;
            int zoomWidth = (int)(horizontalScale + .5);
            if (horizontalAxis.MajorTickInterval != zoomWidth * DesiredHorizontalTickInterval)
            {
                horizontalAxis.MajorTickInterval = zoomWidth * DesiredHorizontalTickInterval;
            }
 
            int desiredVerticalMajorStep = 7;
 
            double verticalScale = (radChartView1.View as IChartView).ZoomHeight;
            int zoomHeight = (int)(verticalScale + .5);
            var yAxis = ((sender as ChartView).Axes.Last() as LinearAxis);
            if (yAxis.MajorStep != zoomHeight * desiredVerticalMajorStep)
            {
                yAxis.MajorStep = zoomHeight * desiredVerticalMajorStep;
            }
        }

Borislav
Top achievements
Rank 1
 answered on 03 Aug 2017
3 answers
188 views

Hello,

how can I change, by property or by code, the color of the splitter ?

Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
3 answers
153 views

Hello,

When implementing functionality to programmatically allow user to zoom (not to cut, but zoom, being able to zoom in/out afterwards) to particular range on the x and y axis I had an issue with pan/zoom functionality.

I used radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot.Width and radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot.Height to get visible area inside axes because there was always a shift caused by axes titles whose size I must also be able to change dinamically. That shift isn't constant and I had to manually calculate it based on the selected font size of chart elements. This worked fine.

However, it turned out that I have an issue when chart is redrawn from the start, with the legend shown, and my calculations are performed in such a way that radChartView1.View.Area.AreaModel.PlotArea.LayoutSlot.Width doesn't consider the legend on the right which is added after I do my calculations. My question is, is there an event which is fired after the legend is added (or any event before finally drawing chart which will still allow me to call method that I'm using to change pan/zoom) so I can use PlotArea.LayoutSlot.Width in a way that it will be the width of the plotted chart area after the legend is shown (since legend will eat some of the width I calculated).

Thanks

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
6 answers
1.1K+ views
Hi

Linking a dropdownlist to a datatable seems simple enough:

cbEName.DataSource = Main.DataSet.Employee
cbEName.DisplayMember = "FName"
cbEName.ValueMember = "id"

But I want to display the persons full name and the display member.  Logically I'd write something like this:

cbEName.DataSource = Main.DataSet.Employee
cbEName.DisplayMember = "FName" & " " & "LName"
cbEName.ValueMember = "id"

But that obviously doesn't work.  Anyone know how to run through the dropdown list collection and add the surname?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
6 answers
676 views

Hi everybody,

 

we are extensively using your great new RadVirtualGrid.

We currently have this problem:

If an underlying data item of a row is being edited in a separate editor or values have been updated by database queries: how do we force an update on the cell?

Obviously somehow the event CellValueNeeded has to be refired; but how do we do that?

We already tried:

MyVirtualGrid.Invalidate()
MyVirtualGrid.Refresh();
MyVirtualGrid.Update();

Thanx in advance,

regards

Ronald

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Aug 2017
1 answer
104 views

Hi Team, 

I guess this is something i  either cannot find or i am missing something in tutorials, 

I want to have a tree which binds to my custom list  and i want to use load on demand feature , 

 

i did find  solution in patches ,

1) load on demand examples only creates new RadTreeNode whereas i want to bind my custom object

2) binding custom object example shows how to bind a object list with levels known at design time. 

 

Any sample code or direction will be highly appreciated.  

 

Dimitar
Telerik team
 answered on 03 Aug 2017
1 answer
130 views

I'm building a grid where a GridViewComboBox will have its list dynamically updated based on the selection of an item in a previous column.  I've read numerous posts about how to and how not to do this and they all make sense but I'm having one tiny problem that I cannot resolve (its because of my newness to this Grid I'm sure!)

 

Here's the code:

Private Sub ATGrid_EditorRequired(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.EditorRequiredEventArgs) Handles ATGrid.EditorRequired
   If ATGrid.CurrentColumn.Name.ToLower = "messagecodetype" Then
      If e.EditorType Is GetType(RadComboBoxEditor) Then
         RemoveHandler DirectCast(e.Editor, RadComboBoxEditor).ValueChanged, AddressOf Editor_ValueChanged
         AddHandler DirectCast(e.Editor, RadComboBoxEditor).ValueChanged, AddressOf Editor_ValueChanged
      End If
   End If
End Sub

See where it says "RadComboBoxEditor" ?  My Visual Studio 2017 code says, "RadComboBoxEditor not defined"

My form imports the following:

Imports Telerik.WinControls
Imports Telerik.WinControls.UI

but clearly this object is either not exposed or not found in either namespaces.  Can someone direct me to the correct namespace, please?

 

Thanks much!

-Curtis

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2017
1 answer
204 views

I need to load a "Dropdown & List" with images and data from a SQL Server table but not if I load the options with Entity Framework or some other option.

Could someone help me or recommend some similar example please?


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2017
7 answers
265 views
How can I put one RibbonBarGroup on the right side of RibbonBar?

Thanks,
Kevin
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2017
4 answers
268 views

In attempting to make use of this control there are a number of series issues with it.

Firstly, when attempting to add ranges to the range collection via the properties in visual studio 2017, this doesn't work.

What happens is the ranges you add are created in the Designer.cs of the form you are working on, but are not associated with the TrackBar you created them from.  (see attachment 1.) If you click the ranges collection again after adding one of the ranges, it naturally shows up empty. So currently the only way to add ranges is to do so programmatically. 
Secondly, performance issues, setting the maximum of of the trackbar to 1000+ and it becomes unreasonably slow, and unresponsive.

Thirdly, Assigning a value that exceeds ranges of the minimum or maximum, results in a popup message stating "The Value should be between minimum and maximum" no exception is thrown. (this looks like it was supposed to be a design time response) 

Setting a range to the start and end points to the minimum and maximum values of the trackbar, often results in one of the thumbs not being visible on the screen after loading. (see second attachment) 

I've seen elsewhere on the forum that the suggested performance fix was to apply basically scaling to the trackbar to reduce the number of elements that it needs to render, but when using the control to say track the position of media in seconds, scaling doesn't really work. 

 

 

Dimitar
Telerik team
 answered on 02 Aug 2017
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?