Telerik Forums
UI for WinForms Forum
3 answers
686 views
I need to merge multiple PDF files into one file.  Can the Telerik Winforms PDF API be used to do this?
Kipp
Top achievements
Rank 1
 answered on 19 Apr 2013
5 answers
139 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
135 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
144 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
109 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
288 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
112 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
172 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
291 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
180 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
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
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?