Telerik Forums
UI for WinForms Forum
0 answers
112 views

I have 4 tabs in a PageView Strip mode where 2nd tabs visibility is false that's why empty space found in continuity of 4 tabs.

how can i set property to auto arrange tabs on page load in c# windows form.

Muhammad Naveed
Top achievements
Rank 1
 asked on 04 Oct 2017
1 answer
125 views

Hi,

Can i add shapes from RadDiagramToolbox to RadDiagram by double clicking on the items instead of drag and drop?

 

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2017
2 answers
1.5K+ views

I have a datetimepicker field where I want to change the background colour of special days.

I have set up event handlers for the clicking of the arrows but what event is fired when the user changes the month drop down on the picker.

My code as it stands is

       public form1()
        {
            InitializeComponent();

            RadDateTimePickerCalendar calendarBehavior = this.dtDOI.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
            calendar = calendarBehavior.Calendar as RadCalendar;
            RadCalendarElement calendarElement = calendar.CalendarElement as RadCalendarElement;
            MonthViewElement monthView = calendarBehavior.Calendar.CalendarElement.CalendarVisualElement as MonthViewElement;
            calendarElement.NextButton.Click += new EventHandler(calendar_SelectionChanged);   
            calendarElement.PreviousButton.Click += new EventHandler(calendar_SelectionChanged);
            calendarElement.FastBackwardButton.Click += new EventHandler(calendar_SelectionChanged);
            calendarElement.FastForwardButton.Click += new EventHandler(calendar_SelectionChanged);
         }

        void calendar_SelectionChanged(object sender, EventArgs e)
        {
            FormatCalendar();
        }

        private void FormatCalendar()
        {
            RadDateTimePickerCalendar calendarBehavior = this.dtDOI.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
            RadCalendar calendar = calendarBehavior.Calendar as RadCalendar;
            MonthViewElement monthView = calendarBehavior.Calendar.CalendarElement.CalendarVisualElement as MonthViewElement;
            RadCalendarDay[] specialDays = calendar.SpecialDays.ToArray();
            List<DateTime> dates = ExtractSpecialdates(specialDays);

            foreach (CalendarCellElement cell in monthView.TableElement.Children)
            {
                if (dates.Contains(cell.Date))
                {
                    cell.BackColor = Color.Green;
                }
                else
                {
                    cell.BackColor = Color.White;
                }
            }

        }

If I use   calendar.ElementRender += new RenderElementEventHandler(calender_SelectionChanged); I get stuck in a perpetual loop. 

Or is there a better way of doing things?

Mike
Top achievements
Rank 1
 answered on 03 Oct 2017
3 answers
324 views

Hi, according to docs, High DPI for RadControls should run smoothly when the controls are placed on a RadForm.

Whats the strategy if the application uses standard Dialogs (not based on RadForm)?

Per Monitor DPI awareness assuming running on newest Win10 Update and .net 4.7?

Regards

Erwin

Hristo
Telerik team
 answered on 03 Oct 2017
4 answers
102 views
Is there a way to disable the add to dictionary button from the dialog created in the WinControls RadSpellChecker?
MS
Top achievements
Rank 1
 answered on 02 Oct 2017
3 answers
231 views

How do you resize a document window when it is changed to floating.  Also, how do you change the title bar text?  I am using the FloatingWindowCreated event.  I have the statements listed below included already and they are working.  Nothing I have tried has worked for setting the size and title text.

      e.Window.AutoSize = True
      e.Window.ThemeName = myThemeName
      e.Window.MaximizeBox = True
      e.Window.MinimizeBox = True
      e.Window.Icon = My.Resources.TMBIcon

Susan
Top achievements
Rank 1
 answered on 02 Oct 2017
3 answers
117 views

Hello,

I have a requirement to display grid view of decimal value columns with the exception that I need to show comboboxes in the first row of the grid view. Comboboxes will have three non-editable values. How to achieve this?

Dimitar
Telerik team
 answered on 02 Oct 2017
1 answer
972 views
Hello, I need help, I trying to put a Textbox format Currency, but dont work. for example, the Textbox recive 450.00 the value is money, so I need $ 450.00, but show me only 450
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Oct 2017
5 answers
116 views

i'm using this controls for display persian text...

in design time everything is OK but when it runs the text will clipped like the picture...

as you see it shows some border inner the text box...

just to say, the padding doesn't change anything...

Dimitar
Telerik team
 answered on 02 Oct 2017
3 answers
417 views

I'm having an issue with my project. I have a RadGridView populated by a Stored Procedure, I have some Cellformatting in place.
I'm getting some odd behaviour when scrolling, the formatting is being applied to more than just the first 2 columns and the more you scroll the worse it gets.

I'm using an older version but we recently purchased the latest version of telerik for winforms to test and I'm getting the same behaviour in the new project.
Any assistance would be appreciated.

My code for CellFormatting

    Private Sub DataGridView2_CellFormatting(sender As Object, e As CellFormattingEventArgs) Handles DataGridView2.CellFormatting

        If e.ColumnIndex = 0 Then
            e.CellElement.Font = RWLCompleteFont
            e.CellElement.ForeColor = Color.Black
            e.CellElement.NumberOfColors = 1
            e.CellElement.BackColor = Color.LightSteelBlue
            e.CellElement.DrawFill = True
            e.CellElement.DrawBorder = True
            e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
        End If
        If e.ColumnIndex = 1 Then
            e.CellElement.Font = RWLDetailsFont
            e.CellElement.ForeColor = Color.Black
            e.CellElement.NumberOfColors = 1
            e.CellElement.BackColor = Color.LightSkyBlue
            e.CellElement.DrawFill = True
            e.CellElement.DrawBorder = True
            e.CellElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.OuterInnerBorders
        End If

    End Sub

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