Telerik Forums
UI for WinForms Forum
2 answers
118 views

Hi,

I have created a custom RadDiagramShape. I would like to be able to add a drop down list to my shapes so that the user would be able to select a certain value from a list in order to identify each shape. Or some alternative solution which will allow a user to select a value from a drop down list to be able to identify shape objects that are used on the diagram. I've attached an image to try and describe what i would like to achieve.

Thanks.

Jacques
Top achievements
Rank 1
 answered on 28 Jan 2019
5 answers
568 views
I need to save and then restore listview columns settings (mainly column width and column order) when the user changes these settings:
1. How do I save and restore the columns width and order
2. Which event can I use to trap a user's column width and/or order change

I have not found a method like the save and restore layout of the radgridview ..

Thanks in advance
Pierre-Jean
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2019
1 answer
85 views
After chasing my tail for longer than I will admit I found the very important note in the RadBindingNaviagator Getting Started page not to change the design time name of the control or the control will not function. By convention and policy all controls are changed to meaningful names in my programming environment. I would like to say that this non-standard behavior is very unwelcome I strongly request that behavior gets corrected going forward. It makes me wonder what other traps are in the controls. Thanks 
Dimitar
Telerik team
 answered on 28 Jan 2019
1 answer
249 views

Is there any easy way to convert RadDataFilter.Expression to FilterDescriptorCollection, so ill be able add it do CompositeFilterDescriptor of the RadGridView.FilterDescriptors.

RadGridView.FilterDescriptors.Add(new CompositeFilterDescriptor() { FilterDescriptors = RadDataFilter.Expression? });

Dimitar
Telerik team
 answered on 28 Jan 2019
3 answers
449 views

Hello,

So I've come across this weird (possible) bug whereupon if you bing a datatable as datasource in a multicolumn combobox and then try to change the SelectedIndex before the combobox has been drawn to the UI, you get an Index out of range exception even though the index is perfectly fine.

If you wait for it to be drawn, then it works fine.

 

I've created a reproducible example where I have a form with a PageView control; there's an "Employee" class whose "NewPage(AvoidBug As Boolean)" function returns a PageViewPage which has a MultiColumn cb inside with a datatable as its DataSource.

The 1st button on the main form will add the PageViewPage control that the NewPage(False) function returned to the PageView and the mccb.SelectedIndex will be changed inside the NewPage() function (so before it's drawn to the UI)

The 2nd button will do the same, only calling the NewPage(True) will result in a Public Variable inside the Class being set to the Index we want the mccb.SelectedIndex to be changed to, but the mccb.SelectedIndex will NOT change. After the control is added on the main form, the mccb.SelectedIndex now changes, and no exception is produced.

 

*So does that mean the the DataSource indexing on a mbcb occurs only after the control is drawn/visible to the user?

*Another thing I noticed, even when the second button is pushed, the bug avoidance only works once. If you push it again (to add a second PageViewPage) then exception occurs again

*However, if you delete the first PageViewPage before pushing the second button a second time, essentially adding a first PageViewPage again, then the exception doesn't occur

 

Things will become much clearer by using the reproducible code: https://www.dropbox.com/s/4ccjr37n60mavt4/TelerikWinFormsApp1%20%282%29.rar?dl=1

 

Best regards,

Ioannis Mamalikidis

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2019
1 answer
702 views

Hi.

I have a problem.

How can print a picture from a picturebox?

How can put correct object in Associateobjet to print it?

Hristo
Telerik team
 answered on 28 Jan 2019
4 answers
223 views
Hi everyone,

I use a RadTrackBar in my WinForm application and when the user move the trackbar, I change a value in a RasSpinEditor. My problem is that i do so at the ValueChanged event of my RadTrackBar wich is fired only when i release the mouse button. This doesn't correspond to what we are looking for. Is there another event which allow to change my RadSpinEditor value during the move of the radTrackBar ? I need to know the value of the TrackBar, that's why i use the ValueChanged event for know, but the value change only when I release the mouse button, can we change that comportment ?

Thanks,

[Nean]
Hristo
Telerik team
 answered on 28 Jan 2019
0 answers
100 views

hi

is possible set scroll bar for one cell?

asghar
Top achievements
Rank 1
 asked on 26 Jan 2019
2 answers
260 views

Hi!

I have a tri-state RadCheckBox and tried to change its intermediate state background color with the "SetThemeValueOverride", but nothing happens.

The code is the following:

checkBox.ButtonElement.CheckMarkPrimitive.CheckElement.GradientStyle = GradientStyles.Solid;

checkBox.ButtonElement.CheckMarkPrimitive.SetThemeValueOverride(FillPrimitive.BackColorProperty, Color.Black, "ToggleState=Intermediate", typeof(FillPrimitive));

 

What do I wrong?

 

Thank you,

Sandor

Sandor
Top achievements
Rank 1
 answered on 25 Jan 2019
1 answer
79 views

Hello there. 

This code returns negative MaxSize on 100% dpi, since it overflows int.

var dpiScaleFactor = radLabel1.RootElement.DpiScaleFactor;
var r1 = new Size(150, int.MaxValue);
var r2 = TelerikDpiHelper.ScaleSize(r1, new SizeF(1f / dpiScaleFactor.Width, 1f / dpiScaleFactor.Height));

I use that code to descale some sizes on runtime per suggestion on the forum, also I have seen similar code in Telerik sources. When control receives negative max size it becomes invisible. You may want to investigate this cases. 

I use Telerik 2018.3.1016.20 with .Net 3.5 on Server 2008 R2 SP1.

Best regards.

Dimitar
Telerik team
 answered on 25 Jan 2019
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?