Telerik Forums
UI for WinForms Forum
3 answers
227 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
145 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
176 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.6K+ 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
204 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
140 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
195 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
128 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
3 answers
123 views
Hello everybody,

at first, the controls involved in the problem are the following:
- RadTextBox
- RadSpellchecker (spell check as you type mode)
- ContextMenuStrip 

I want to use a RadTextBox within a customized ContextMenuStrip and a RadSpellchecker. The problem is, that the RadSpellchecker overwrites the customized ContextMenuStrip with its own ContextMenuStrip if there are wrong words.
Have you an idea how to use the customized ContextMenuStrip and the RadSpellchecker ContextMenuStrip at the same time?

Many thanks in advance for your help
Dennis
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Feb 2015
2 answers
420 views
I would like to override the TextChanged event of my own inherited textbox.  How should I proceed?
For the Click event of an inherited button I do have the following working code, but for a textbox I cannot find the right way.

using System;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace Iap.WinUi.Controls.Button
{
public class QButton : RadButton
{
protected override RadButtonElement CreateButtonElement()
{
return new QButtonElement(this);
}
}

public class QButtonElement : RadButtonElement
{
private readonly RadButton Owner;

public QButtonElement(RadButton owner)
{
Owner = owner;
}

protected override void OnClick(EventArgs e)
{
var form = Owner.FindForm();
try
{
// set wait cursor
form.Cursor = Cursors.WaitCursor;
form.Refresh();

// execute base click code
base.OnClick(e);
}
finally
{
// set arrow cursor
form.Cursor = Cursors.Default;
}
}

protected override Type ThemeEffectiveType
{
get { return typeof (RadButtonElement); }
}
}
}
hans
Top achievements
Rank 1
 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)
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?