Telerik Forums
UI for WinForms Forum
0 answers
37 views

Hello,

How to apply the focus on tab moving for Radcommadbardropdownlist. please do the needful

 

Marco
Top achievements
Rank 1
 asked on 31 Oct 2018
0 answers
142 views

I'm posting this for anyone who comes across this same issue.

As of Q1 2015 SP1, the CommandBarToggleButton has been changed with respect to how it behaves when disabled. If you want toggle buttons to look the same as regular buttons when disabled, you need to set the UseDefaultDisabledPaint property to true and also handle the EnabledChanged event to turn off or on the DrawBorder and DrawFill properties.

        private void toggleSelectMode_EnabledChanged(object sender, EventArgs e)
        {
            ((Telerik.WinControls.UI.CommandBarToggleButton)sender).DrawBorder = ((Telerik.WinControls.UI.CommandBarToggleButton)sender).Enabled;
            ((Telerik.WinControls.UI.CommandBarToggleButton)sender).DrawFill = ((Telerik.WinControls.UI.CommandBarToggleButton)sender).Enabled;
        }

Without these steps, when you disable a toggle button you'll see one or all of the following

  • the buttons stay in color (not grayed out) 
  • the border of the button visible
  • the background of the button go gray instead of just the icon

In the attached image, all of the command bar buttons have Enabled set to false. The controls look as expected except for the toggle buttons. If you follow the steps given in this post, they'll look as expected too.

Good luck all!

Chris

 

 

Chris Vaughn
Top achievements
Rank 1
 asked on 19 Feb 2016
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
Buttons, RadioButton, CheckBox, etc
DropDownList
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
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
CAB Enabling Kit
TabbedForm
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
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?