Telerik Forums
UI for WinForms Forum
5 answers
216 views
Can the TextBox of the DateTimePicker be set to read only so that the user cannot manually edit any of the date?  I tried using dtp.DateTimePickerElement.TextBoxElement.TextBoxItem.ReadOnly = true, but I was still able to edit the day. 

When a minDate value is set it appears to the user that they can edit the day and be able to be set the date to a date less than the min date.  Worse yet, say you have a minDate of 5/19/2008 and 5/20/2008 is selected.  If you edit the day to 31 and then edit it again to 15, it will stay at 31 (display = 5/15/2008, value = 5/31/2008).  Very confusing.

In the constructor, I set the MinDate, NullDate and value of the DateTimePicker = DateTime.Today.  If today is 5/19/2008, using the Picker I cannot select 5/19/2008.  I can only select 5/20/2008 and greater.

Are there properties that I need to set to avoid this situation?

Thanks,
Mike
Boyko Markov
Telerik team
 answered on 04 Jun 2009
1 answer
143 views
Hi - I have set the ShowCheckBox Property to True for my RadDateTimePicker (version 2009 Q1).  It appears the alignment is Top,Left.  How do I center it so it's consistent with the text?
Boryana
Telerik team
 answered on 04 Jun 2009
6 answers
215 views
Hi,

I have a grid which can contain more than one screen-ful of data. After population I call BestFitColumns() to auto-size the grid columns, but the logic is only applied to the visible rows. I want the columns to be resized based on ALL rows in the grid, since if the user scrolls down they see truncated cells.

Is this possible?

Regards
Prad
Top achievements
Rank 2
 answered on 03 Jun 2009
1 answer
1.7K+ views
Hi Telerik Team,

I am trying to add a button column in a WinForm gridview but I am unable to figure it out on how to do that.

Could you please provide me the sample code or assist me in doing so?

Thank you in advance!

Best Regards,
Vasanth

Shinu
Top achievements
Rank 2
 answered on 03 Jun 2009
1 answer
119 views
I am using a GridSpinEditor in my decimal columns, but when the user clicks on a cell has a null value and is initially blank, a 0.00 is entered into the cell editor automatically.  Thus the value is changed without the user making any changes other than clicking in the cell.  I need to leave the value blank unless the user actually changes it - i.e. have the editor's initial value be blank if the data is null.  I have tried using NullValue, DefaultValue, and even setting the text to blank inside CellEditorInitialized, but the 0.00 still shows up!  Is there a way to fix this?

Thank you,
Rachel
Jack
Telerik team
 answered on 03 Jun 2009
1 answer
149 views

The exception occurs when I closed the window in thr form-activated state.

main

{
    Thread th = new Thread();
    th = new Thread(StartSetting);
    th.IsBackground = false;
    th.Start();
}

public void StartSetting()
{
    RadForm rf = new RadForm();
    rf.ShowDialog();
}

rf Loading.... <---
main() kill <---
show exception <--
====================================================================================

---------------------------

---------------------------
Error loading theme from resource Mworks.MSOffice.Toolbar.Client.Process.Theme.ButtonTheme.xml: System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlTheme.DeserializePartiallyThemeFromReader(XmlReader reader, String themeLocation)

   위치: Telerik.WinControls.XmlTheme.LoadPartiallyFromStorage(ThemeSource themeSource)
---------------------------
확인  
---------------------------

---------------------------

---------------------------
Error applying theme to an element of type Telerik.WinControls.RootRadElement that is part of control: Telerik.WinControls.UI.RadButton. Theme builder: Telerik.WinControls.DefaultStyleBuilder. Theme file location: . Exception details:System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

   위치: System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)

   위치: Telerik.WinControls.StyleSheet.ProcessStyle(RadElement rootElement, Boolean isDynamicallyAddedElement)

   위치: Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RootRadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)

   위치: Telerik.WinControls.StyleBuilderBase.BuildStyle(RadElement element)

   위치: Telerik.WinControls.RadElement.ApplyTheme()
---------------------------
확인  
---------------------------

---------------------------

---------------------------
Error applying theme to an element of type Telerik.WinControls.RootRadElement that is part of control: Telerik.WinControls.UI.RadButton. Theme builder: Telerik.WinControls.DefaultStyleBuilder. Theme file location: . Exception details:System.Threading.ThreadAbortException: 스레드가 중단되었습니다.

   위치: System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   위치: System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   위치: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   위치: System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   위치: System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)

   위치: System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)

   위치: System.Drawing.ColorConverter.FillConstants(Hashtable hash, Type enumType)

   위치: System.Drawing.ColorConverter.get_SystemColors()

   위치: System.Drawing.ColorConverter.GetNamedColor(String name)

   위치: System.Drawing.ColorConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

   위치: System.ComponentModel.TypeConverter.ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, String text)

   위치: Telerik.WinControls.XmlSerialization.ObjectSerializationInfo.ConvertFromString(String value)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadCollectionElement(XmlReader reader, IList toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)

   위치: Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object toRead)

   위치: Telerik.WinControls.PartiallyLoadedStyleSheet.get_PropertySettingGroups()

   위치: Telerik.WinControls.StyleSheet.ProcessStyle(RadElement rootElement, Boolean isDynamicallyAddedElement)

   위치: Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RootRadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)

   위치: Telerik.WinControls.RadObject.UpdateEffectiveValue(RadProperty dp, RadPropertyMetadata metadata, Boolean isCoerceValue, Boolean isOldValueValid, Object oldValue, ValueSource oldValueSource, Boolean oldValueIsDeferred, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValueCommon(RadProperty dp, Object value, RadPropertyMetadata metadata, Boolean coerceWithDeferredReference)

   위치: Telerik.WinControls.RadObject.SetValue(RadProperty dp, Object value)

   위치: Telerik.WinControls.StyleBuilderBase.BuildStyle(RadElement element)

   위치: Telerik.WinControls.RadElement.ApplyTheme()
---------------------------
확인  
---------------------------

Deyan
Telerik team
 answered on 03 Jun 2009
5 answers
306 views
Hi everybody.
I have a gridview with 3 columns, one of which is a of gridviewcheckboxcolumn type. gridviewcheckboxcolumn is only one which can be edited, and additionally is unbound. Now I'm trying  to check/uncheck cells in gridviewcheckboxcolumn but nothing happens. It seems like the cells are read only. Do I have to write an cell event handler, or may be just to set some column proprieties?
Thanks.
Best regards, Frank.
Prad
Top achievements
Rank 2
 answered on 02 Jun 2009
4 answers
973 views
I have a chart that is bound to a datasource.  When data is updated in the table, the chart is not refreshed or updated.  I have tried:
.update()
.updategraphics()
.refresh()

And also:
.datasource= mybindingsource
.databind()

The latter causes a large red X to be displayed instead of a chart.

Any help?
Michelle
Top achievements
Rank 1
 answered on 02 Jun 2009
5 answers
132 views
Hi,

I am adding the RadPanelbarGroupElement in RadPanelbar control on Runtime and adding the populated Treeview control in each group.  The RadPanelbar is in OutlookNav style and for each group, EnableHostControlMode is true.

Everything works fine but if I click any of the Groups 4 times, the whole application hangs.

Please suggest. See the code below:

 

private void PreapreNavigationControl(Feature feature)
        {
          
            if (feature.Groups.Count > 0)
            {
                foreach (Group group in feature.Groups)
                {
                    //Adding the treeview
                    RadTreeView treeView = new RadTreeView();

                    RadPanelBarGroupElement groupElement = new RadPanelBarGroupElement();
                    radPanelBarNavigation.Items.AddRange(new Telerik.WinControls.RadItem[] {groupElement});
                  
                    ConfigureGroupElement(groupElement, group.Name, out treeView);

                    //Adding the Root Node
                    RadTreeNode rootNode = createAndRegisterTreeNode(group.Name, string.Empty);
                    treeView.Nodes.Add(rootNode);

                    foreach (Task task in group.Tasks)
                    {
                        RadTreeNode taskNode = createAndRegisterTreeNode(task.Name, task.NavigationCommandName);
                        rootNode.Nodes.Add(taskNode);
                    }

                }
            }
        }

private RadPanelBarGroupElement ConfigureGroupElement(RadPanelBarGroupElement groupElement, string groupElementName, out RadTreeView treeView)
{
            //RadPanelBarGroupElement groupElement = new RadPanelBarGroupElement();
            treeView = new RadTreeView();

            //Designer Code

            groupElement.ContentPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(treeView)).BeginInit();

            groupElement.Caption = groupElementName;

            // groupElement.ContentPanel
            groupElement.ContentPanel.BackColor = System.Drawing.SystemColors.ControlLightLight;
            groupElement.ContentPanel.CausesValidation = true;
            groupElement.ContentPanel.Controls.Add(treeView);
            groupElement.EnableHostControlMode = true;
            groupElement.Text = groupElementName;
           
            // treeView

            treeView.BackColor = System.Drawing.Color.Transparent;
            treeView.Dock = System.Windows.Forms.DockStyle.Fill;
            treeView.Font = new System.Drawing.Font("Tahoma", 8.6F);
            treeView.Location = new System.Drawing.Point(0, 0);
            treeView.ShowItemToolTips = true;
            treeView.ShowLines = true;
            treeView.ShowRootLines = true;
            treeView.ThemeClassName = "Telerik.WinControls.UI.RadTreeView";
            treeView.Size = new System.Drawing.Size(277, 416);

            groupElement.ContentPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(treeView)).EndInit();

            return groupElement;
        }



Jordan
Telerik team
 answered on 02 Jun 2009
5 answers
123 views
I have a MaskEditBox for a phone number.  When I click out or tab out of the maskeditbox the value is replaced with (___) ___-____.  Is there a property that I need to set or some other workaround to fix this?
Boryana
Telerik team
 answered on 02 Jun 2009
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
ProgressBar
CheckedDropDownList
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?