Telerik Forums
UI for WinForms Forum
3 answers
62 views

Hello,

I was wondering how to do the following on a DateTimePicker, if it is possible at all: apply one theme to the main control and another to its calendar.

Something like this:

RadDateTimePicker1.ThemeName = A


Dim calendarBehavior As RadDateTimePickerCalendar = TryCast(RadDateTimePicker1.DateTimePickerElement.GetCurrentBehavior(), RadDateTimePickerCalendar)
Dim calendar As RadCalendar = TryCast(calendarBehavior.Calendar, RadCalendar)

calendar.ThemeName = B
Thank you
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2023
1 answer
64 views

How do I parse an 'a href' tag in RadDesktopAlert content so that, after clicking the link, the page will open?

Br

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2023
1 answer
77 views

Hi,

How can I change the selected text colour of a RadDateTimePicker?

I'm not sure if this is possible, I'm afraid the DateTimePicker uses a MaskedEditBox, which uses a RadTextBox, which in turn uses a normal TextBox from .Net... so in the end I don't think it can be done, am I right? If so, is there a viable alternative?

Also, why are most edit controls based on RadTextBox instead of RadTextBoxControl? Wouldn't it be better to use the latter and take advantage of the fact that it has more Telerik features built in?

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Aug 2023
3 answers
67 views

Hello everyone! These days, I am doing some research with the RadDock control and encountering a difficulty when I'm trying to completely remove the borders and visually merge individual DockWindow elements. As far as I can see, achieving this requires removing some additional spitter elements, but I haven't had much success so far.

I would appreciate your help with this.

Kind Regards,

Simeon

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Aug 2023
1 answer
242 views

I have a combobox column that shows an Enum value and a second column, a text column, that shows descriptive text about the Enum.

This is a bound grid and the Enum is a property in the bound object while the descriptive text is a computed property.

When I select a value from the combobox, I want the descriptive text column to change immediately - without having to wait 'til the user leaves the combobox cell.

Using the ValueChanged event I can catch the combobox change immediately, but I haven't been able to show the change in the text column.  The property in the DataBoundItem hasn't changed yet, and even if it had I don't know that the text column would refresh automatically.  I've tried setting the text value, but it doesn't work.  I've tried calling Refresh() and EndEdit() -- also nothing.

I can't be the only one doing this.  How's it done?

Thanks in advance.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2023
1 answer
70 views

I want to prevent the radDateTimePicker from getting focus with TabStop set to FALSE and the control is enabled. I can do this with TextBoxes and CheckBox, etc, but this control, no matter what I do, even if I set the internal controls to TabStop = false, the control still gets focus.  

 

Looking for a solution

TIA

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Aug 2023
1 answer
73 views

I am using the example from Customizing RadWaitingBar - RadWaitingBar - Telerik UI for WinForms that DASH Stile.  The problem is, I want to be able to view the text through it. Based on the example code there (attached here), the texted is hidden behind the color bars. The example just above this example on this page that shows the text upside down and right justified, shows the text visible, however, when I take that code an apply it to the lastest telerik release, the text is not visible.   I am sure this is probably a settings I am not setting, Any help would greatly help me here.

Here is a sample screen shot

Here is the code I am using


      private void ShowWaitingBar()
      {
         radWaitingBarElementBase.ShowText = true;
         radWaitingBarElementBase.Text = "Hello World";

         radWaitingBarElementBase.WaitingStyle = Telerik.WinControls.Enumerations.WaitingBarStyles.Dash;
         WaitingBarSeparatorElement dash = radWaitingBarElementBase.SeparatorElement;
         dash.NumberOfColors = 2;
         dash.BackColor = Color.Blue;
         dash.BackColor2 = Color.LightBlue;
         dash.SweepAngle = 45;
         dash.StepWidth = 15;
         dash.SeparatorWidth = 10;
         dash.GradientPercentage = 0.25f;

         radWaitingBarElementBase.StartWaiting();
      }

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Aug 2023
1 answer
76 views

Hi Team Telerik,

I just wanted to add new row in grid when user press Enter Key.

By default row is added in grid when user clicks somewhere in grid this is not needed.

Hope you understand my requirements.

 

Thanks,
Shubham Jain

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Aug 2023
1 answer
106 views

Hi,

I'm trying to retain the background color of a button on the click event to indicate it's the last button that was selected. Clicking another button should reset the first button then highlight the second button. All four backcolor assignments work fine, but on the reset side only the first backcolor property seems to work.


        Dim theme As Theme = ThemeRepository.FindTheme(Me.myButton.ThemeName)
        Dim repository As StyleRepository = theme.FindRepository("ButtonMouseDownFill")
        Dim setting As PropertySetting
        Dim bColor As Color, bColor2 As Color, bColor3 As Color, bColor4 As Color

        setting = repository.FindSetting("BackColor") : bColor = CType(setting.EndValue, Color)
        setting = repository.FindSetting("BackColor2") : bColor2 = CType(setting.EndValue, Color)
        setting = repository.FindSetting("BackColor3") : bColor3 = CType(setting.EndValue, Color)
        setting = repository.FindSetting("BackColor4") : bColor4 = CType(setting.EndValue, Color)

        Select Case buttonName
            Case Me.btnFirst.Name
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor2Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor3Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnSecond.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor4Property, ValueResetFlags.Local)    '<-- doesn't work

                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor = bColor
                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor2 = bColor2
                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor3 = bColor3
                Me.btnFirst.ButtonElement.ButtonFillElement.BackColor4 = bColor4

            Case Me.btnSecond.Name
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor2Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor3Property, ValueResetFlags.Local)    '<-- doesn't work
                Me.btnFirst.ButtonElement.ButtonFillElement.ResetValue(LightVisualElement.BackColor4Property, ValueResetFlags.Local)    '<-- doesn't work

                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor = bColor
                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor2 = bColor2
                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor3 = bColor3
                Me.btnSecond.ButtonElement.ButtonFillElement.BackColor4 = bColor4


        End Select

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Aug 2023
1 answer
77 views

Hello

I am working on windows form application with c#.

I have used telerik radgrid on the form.

Need a checkbox in the radgrid cell depending on the value of the cell.

e.g. If the value in the cell is true or false then instead of showing true or false in the cell need to checkbox,

if the value in the cell is date or datetime then datetimepicker should display in the cell.

Here is the screenshot describing my problem.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Aug 2023
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?