Telerik Forums
UI for WinForms Forum
3 answers
150 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
670 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
99 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
123 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
200 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
253 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
259 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
2 answers
140 views

Hi,

 

The mouse up, double click and, mouse down events do not fire inside the radmaskededit box control. They only fire when clicking on the edge of the control. The events work fine for the regular masked edit box.

 

Please advise.

 

Regards

Mohammed

Mohammed
Top achievements
Rank 1
 answered on 01 Aug 2017
1 answer
195 views
Hello there, I manually added Telerik winform controls in VS2015. I can
use all the controls when I add and then when I close vs all telerik
controls disappear from toolbox and again I have to add manually all the
controls when I starts to work next time. Help needed ASAP.

Thank You!
Nikolay Mishev
Telerik team
 answered on 01 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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?