Telerik Forums
UI for WinForms Forum
1 answer
143 views
I am converting a large project from some 2012 controls to the latest version.   All is going well, until I hit the treeview control.  

On compile, I get this error. 

Cannot implicitly convert type 'Telerik.WinControls.UI.RadTreeView.TreeViewEventHandler' to 'Telerik.WinControls.UI.TreeNodeCheckedEventHandler'

Not quite sure how to handle this. 

here is the referenced line of code
​ this.monitorRadTreeView.NodeCheckedChanged += new Telerik.WinControls.UI.RadTreeView.TreeViewEventHandler(this.monitorRadTreeView_NodeCheckedChanged);
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Feb 2015
6 answers
449 views
I'm looking for a "best practices" guidance statement from Telerik regarding pros and cons of using WinForms versus WPF with regard to Telerik's future roadmap for continuing support and development of these control libraries.

Obviously, existing projects are most easily maintained in whichever format they were orginally designed and built. So the question here concerns selection of WinForms versus WPF for new projects only.

Starting a new project in WPF has the major advantage that it can be more easily converted to Silverlight. Are there any major advantages to starting a new project in WinForms? Are there any performance benefits for the WinForms Grid compared to the WPF Grid?

What are Telerik's "best practice" recommendations regarding these questions?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Feb 2015
3 answers
279 views
I'm trying to add a calculator to my project. I'm thinking that if I use a Rad Calculator DropDown with the popup opened inside an empty form it might work.

So far I have the form as you can see in the attached picture. I did hide the popup border using:

        Me.RadCalculatorDropDown1.CalculatorElement.CalculatorContentElement.DrawBorder = False


I did also hide the arrow button but I can't figure out how to hide the shadow.
My other problem is that when I click the textbox the popup calculator it goes away

It would be nice that you provide a full calculator control. 

Todor
Telerik team
 answered on 11 Feb 2015
3 answers
174 views
Hi,
I'm  trying to use the dock functionality as MDI container, but has a problem when using autoscroll on child forms. So on resizing, scrolls are hidding or not showing correctly. I'm just wondering is there any specifity in use of autoscroll or there is some kind of problem that i'm seeing?
Regards,
Simeon
Todor
Telerik team
 answered on 10 Feb 2015
5 answers
217 views
I have a Main form that is maximized by default.
I changed the inheritance of my Main form to now inherit from  RadForm.
Now when I open the Main form on my left monitor then the Main form has a small edge on the right that is bleeding into the left side of the right monitor.
See attachment for better explanation.
Dimitar
Telerik team
 answered on 10 Feb 2015
4 answers
1.8K+ views
Hi,

How do I format a datetime column in a radgridview control?

I want to show ONLY the date part of the variable. 

I DID try removing it before entering it into the Grid, but then it just shows 12:00:00

I am guessing it has to do with DataEditFormatString or FormatString in the advanced settings for the column, but I've tried all kinds of strings with no luck.

Thanks
Johnny
Aneta
Top achievements
Rank 1
 answered on 10 Feb 2015
3 answers
232 views
My question is that is there any way i can get the property grid to reflect my changes that i make from another control. Right now it is working, but the only way i can see the change is when i set focus on the property grid. Is there any way i can force the property grid to update even when it has no focus, so that way as i can make changes to something is can see it been reflected in realtime in the property grid.
Hristo
Telerik team
 answered on 10 Feb 2015
1 answer
179 views
I am pretty new to RadCalendar.
How can I bind RadCalendar to a local database?
The aim is for the RadCalendar to show the Database inputs.


Any Help will be appreciated 

Regards
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Feb 2015
1 answer
233 views
I am overriding my GetProperties() and Sort Methods of an objects PropertyDescriptorCollection in order to sort by index of a collection.

In the ms winforms propertyGrid this is displaying as expected, while in the Telerik radPropertyGrid it is not performing the same as the picture depicts.

Is there a reason this isn't compatible with the Telerik PropertyGrid?

Below is the code for the PropertyDescriptorCollection sort and GetProperties overrides:

class UserDataPropertyDescriptorCollection : PropertyDescriptorCollection
{
    public UserDataPropertyDescriptorCollection(PropertyDescriptor[] propertyDescriptors)
        : base(propertyDescriptors)
    {
    }
 
    public override PropertyDescriptorCollection Sort()
    {
        PropertyDescriptorCollection ret = new PropertyDescriptorCollection(null);
        return this;
    }
 
    public override PropertyDescriptorCollection Sort(string[] names)
    {
        return this;
    }
 
    public override PropertyDescriptorCollection Sort(string[] names, System.Collections.IComparer comparer)
    {
        return this;
    }
 
    public override PropertyDescriptorCollection Sort(System.Collections.IComparer comparer)
    {
        return this;
    }
 
}
 
public class UserDataExpandableObjectConverter : ExpandableObjectConverter
{
    public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
    {
        PropertyDescriptorCollection d = base.GetProperties(context, value, attributes);
        List<PropertyDescriptor> props = new List<PropertyDescriptor>();
 
        foreach (PropertyDescriptor f in d)
        {
            props.Add(f);
        }
 
        UserDataPropertyDescriptorCollection m = new UserDataPropertyDescriptorCollection(props.ToArray());
        return m;
    }
}

The object being displayed in the propertyGrid
public class alpha
{
    private UserDataCollection usd;
    private string test;
 
    public alpha()
    {
        usd = new UserDataCollection();
        test = "Fun";
    }
 
    [TypeConverterAttribute(typeof(UserDataExpandableObjectConverter))]
    [Category("Collection")]
    public UserDataCollection Collection
    {
        get { return usd; }
        set { usd = value; }
    }
 
    [Category("String")]
    public string Attr
    {
        get { return test; }
        set { test = value; }
    }
}

The form:

public Form1()
{
    InitializeComponent();
    UserDataCollection temp = new UserDataCollection();
    alpha obj = new alpha();
    //Inner test = new Inner();
 
    for (int i = 0; i < 25; i++)
    {
        obj.Collection.Add("");
    }
    radPropertyGrid1.SelectedObject = obj;
}

The only difference between the two projects is the propertyGrid
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Feb 2015
1 answer
169 views
I am creating a new ItemElementType of CustomItem in the CreateItemElement of the property Grid. I override the CreatePropertyGridValueElement but then i notice that Data pointer is set to null, even though the  Item is already create in the createItemElement of the property grid. So my question is that how do i get access to the PropertyGridItemBase object in the CreatePropertyGridValueElement since the only way to create the object it seems like you have to set the e.ItemElementType to a specific type you want to create using reflection.

Thanks.
Dimitar
Telerik team
 answered on 06 Feb 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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?