Telerik Forums
UI for WinForms Forum
5 answers
177 views
Hi,

I defined in two different grids two DateTimeColumn with timePicker editor . In the first column I have in the column ContextMenu the clear value option while in the other column I don't. 
What I am trying to do is letting the user clear the time cell after he filled it by mistake (if he prefers to leave it empty).
Let me know what I am doing wrong .... is it better way to do this ?
// with clear value option
  var timeOnlyColumn = new GridViewDateTimeColumn
            {
                HeaderText = "Time in",
                Name = Data.cJobCardData.JobCardColumns.DateTimeIn,
                FieldName = Data.cJobCardData.JobCardColumns.DateTimeIn,
                Format = DateTimePickerFormat.Time,
                EditorType = GridViewDateTimeEditorType.TimePicker,
                FormatString = "{0: h:mm tt}",
                TextAlignment = ContentAlignment.MiddleCenter,
                Width = colWidth
            };
// No clear value option
    var dateColumnIn = new GridViewDateTimeColumn
            {
                HeaderText = "Date Time In",
                Name = Data.cJobCardData.JobCardColumns.DateTimeIn,
                FieldName = Data.cJobCardData.JobCardColumns.DateTimeIn,
                Format = DateTimePickerFormat.Long,
                EditorType = GridViewDateTimeEditorType.TimePicker,
                FormatString = "{0: M/d/yyyy h:mm tt}",
                TextAlignment = ContentAlignment.MiddleCenter,
                Width = colWidth
            };
Stefan
Telerik team
 answered on 19 Apr 2013
1 answer
179 views
When my app opens, it always opens on the monitor that currently has my mouse cursor. 

I have tried to specifically set the current form's Left property to a number that is smaller than the width of my left-most display, but it seems to always use the coordinates of the mouse' current display.

How can I force a form to open on a specific display?
Stefan
Telerik team
 answered on 19 Apr 2013
3 answers
189 views
Hey Telerik!

How would I customize the boxes in a AutoCompleteBox to be different colors?  A simple idea would be to have a list of objects with a text property and color property.  The boxes could be a certain color based off the color property.

Thanks
Stefan
Telerik team
 answered on 19 Apr 2013
1 answer
145 views
Hi,
I have 3 tables named
1-country(countryid,name)
2-state(stateid,countryid,name)
3-city(cityid,countryid,stateid,name)

and the table named address which have(countryid,stateid,cityid,street) 
All 3 above tables are binded to grid as a combobox column.and address table binded as datasource to the grid everything is fine BUT
how can I relate first 3 combobox together when user select its country from first combo then state combo populate its related states automatically?
Paul
Telerik team
 answered on 19 Apr 2013
8 answers
362 views
Hi,

I'm struggling with your Visual Style Builder. I'm trying to reduce the size of the Scheduler Navigator
Both the buttons and the panel where the dates are viewed. But when i look at this in the VSB, i cannot figure out where the control size is set. Neither where the element sizes is set ( i do look at the elements min and max size, padding and margin.. ) 

And how do i change the look of an Appointment in the scheduler - monthly view?

Could someone please guide me. I need to do this on the Pages control as well. I use the default theme as the base theme...

Regards
Svein Thomas
Ivan Petrov
Telerik team
 answered on 19 Apr 2013
3 answers
154 views
Hello everyone,

i'm using some RadRichTextBoxes in my application.

Because we're in the European Union, we need the character "€" for currency values like "110,23€".

But for me and my customers, it's not possible to insert a € character into the TextBoxes with the key shortcuts "Ctrl+Alt+E" or "AltGr+E" (which are the standard for inserting € characters on european keyboard layouts).

How can i modify the behaviour of the TextBoxes so that these standard values are accepted? But i think a cleaner and better solution would be a native support for the € character by Telerik itself because it's a standard character in Europe like the $ character in the US.

Regards,
Michael
Svett
Telerik team
 answered on 19 Apr 2013
3 answers
217 views
Hi,
I need to add a DocumentWindow to a RadDock control leaving the focus on my current focused control.
In other words I don't want the added DocumentWindow activates itself e get focus, i.e. the open link in new tab
in Internet Explorer.

How can I achieve it?
Thanks
Nikolay
Telerik team
 answered on 18 Apr 2013
1 answer
354 views
When using an object-relational binding with the TreeView control, if the DataSource is set to something, set to null and then set to something again the tree will no longer update.

Here is a code sample:

1. Click Load - the base data appears in the tree.
2. Click Add - a new node appear in the tree.
3. Click Clear - all nodes are erased.
4. Click Load - base data is added back in and appears
5. Click Add - nothing happens...

public partial class Form1 : Form
   {
       BindingList<Thing> RootChildren;
       int currentId = 1;
 
       public Form1()
       {
           InitializeComponent();
       }
 
       private void buttonLoad_Click(object sender, EventArgs e)
       {
           radTreeView1.DataSource = null;
           RootChildren = new BindingList<Thing>();
 
           Thing t1 = new Thing(1, "One");
           Thing t2 = new Thing(2, "Two");
           Thing t3 = new Thing(3, "Three");
           Thing t4 = new Thing(4, "Four");
           currentId = 5;
 
           RootChildren.Add(t1);
           RootChildren.Add(t2);
           RootChildren.Add(t3);
           RootChildren.Add(t4);
 
           radTreeView1.DataSource = RootChildren;
           radTreeView1.ChildMember = @"Children\Children\Children\Children";
           radTreeView1.ValueMember = "Id";
           radTreeView1.DisplayMember = "Name";
       }
 
       private void buttonClear_Click(object sender, EventArgs e)
       {
           radTreeView1.DataSource = null;
       }
 
       private void buttonAdd_Click(object sender, EventArgs e)
       {
           Thing thing = new Thing(currentId, "NewThing" + currentId);
           RootChildren.Add(thing);
           currentId++;
 
           RootChildren.ResetBindings();
       }
   }
 
   public class Thing
   {
       public int Id { get; set; }
       public string Name { get; set; }
       public BindingList<Thing> Children = new BindingList<Thing>();
 
       public Thing() { }
       public Thing(int id, string name)
       {
           Id = id;
           Name = name;
       }
   }
Peter
Telerik team
 answered on 18 Apr 2013
1 answer
223 views
Hi,
I had created rad blank document
this.NotePadTextBox.Document = new RadDocument();
Now i want to set properties like
  • Height & Width
  • LineSpacing
  • LineSpacingType
    • AtLeast - the space between the lines should equal or greater than the value of the LineSpacing property.
    • Auto - the space between the lines is determined automatically.
    • Exact - the space between the lines should equal to the value of the LineSpacing property.
  • PageViewMargin -
  • ParagraphDefaultSpacingAfter 
  • ParagraphDefaultSpacingBefore
  • SectionDefaultPageMargin -
  • Font
I know two of them this.NotePadTextBox.Document.LayoutMode = DocumentLayoutMode.Paged;
            this.NotePadTextBox.Document.SectionDefaultPageMargin = new System.Windows.Forms.Padding(100);
But i don't know how to set rest of them,it is not specified in help file.
Also i want to set default font for newly created document
Svett
Telerik team
 answered on 18 Apr 2013
1 answer
107 views
Treeview will not show the drag indicator dotted lines when using the Visual Studio 2012 Light theme.  This makes it hard to tell exactly where a TreeNode will be dropped.
Peter
Telerik team
 answered on 18 Apr 2013
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?